spacetime

A lightweight javascript timezone library

OTHER License

Downloads
401.8K
Stars
4K
Committers
56
spacetime - 6.9.0

Published by spencermountain almost 4 years ago

  • [fix] - dst-change issues like #236
  • [fix] - inc/dec year issue on exact nye millisecond
  • [change] support parsing quarter-names as input - 'q2 2001'
  • [change] support parsing season-names as input - 'fall 2001'
spacetime - 6.8.0

Published by spencermountain almost 4 years ago

  • [fix] major DST issue #182 (thanks Boris!)
spacetime - 6.7.0

Published by spencermountain about 4 years ago

  • add missing timezones America/Fort_Nelson, Asia/Qostanay, and America/Nuuk
  • fix comparison issue #231 effecting .isSame() and .since() accross different timezones
spacetime - 6.6.4

Published by spencermountain about 4 years ago

  • [fix] 45m offset formatting issue
  • update deps
spacetime - 6.6.3

Published by spencermountain about 4 years ago

  • support for 'today' param with null inputs
  • support for 'today' param with 'today/tonight' inputs
  • interpret empty-string input like null input (as 'now')
  • typescript fixes (#220 #222)
spacetime - 6.6.2

Published by spencermountain about 4 years ago

v6.6.2

  • [fix] for formatting when the output is 0 😓
  • [fix] for leap-day in .date() method
  • update deps
  • add github release/publish script
spacetime - 5.9.0

Published by spencermountain over 5 years ago

5.3.0

  • added more iana timezones
  • fixed zero-padding in iso offsets
  • support half hour offsets in iso formats

5.4.0

  • support more time input formats
  • fixes offset input issue #103

5.6.0

  • support typescript types by Jacob Craig
  • use given timezone when given a spacetime object as an input
  • adds .every(unit, to) method
  • set UTC as default fallback timezone

5.7.0

  • avoid setting dates/months/hours past maximums and minimums
  • .hour(24) now changes date to tomorrow
  • faster diffs for large (decade-long) ranges
  • [big] fix awkward diff/since issues ('dec 25->jan 5' should be 0 years)

5.8.0

  • faster diff for large-number of months
  • more support for esoteric iso formats
  • add format('iso-month')
  • change fallback behaviour for set failure edge-cases

5.9.0

  • add support for changing start/end of the week
  • allow more flexible .i18n() inputs
spacetime - 5.2.1

Published by spencermountain almost 6 years ago

5.1.0

  • titlecase short-forms of months, days in .format()
  • support implicit date in nov 2019
  • support tues March 5th 2018 inputs
  • pretty-dramatic speed optimizations (~50%)

5.2.0

  • next() and last() methods
  • support for century and decades
  • full-api tests and docs
spacetime - 5.0.4

Published by spencermountain almost 6 years ago

v5.0.0 🚨 -breaking

  • 🚨 all methods now immutable by default.🚨
    -- existing code will now need to be s = s.add(1,'day')
    --- (instead of s.add(1,'day'))
  • move unix-formating out of .format() into .unixFmt()
  • support new {hour} oclock-style format templates
  • change default .format() response to yyyy-mm-dd
  • uppercase month and day names in .dayName()
  • support city-names, EST, PDT, etc as input
  • set default silent: true to avoid unwanted logging

5.1.0

  • titlecase short-forms of months, days in .format()

v4.0.0

  • format(iso) now uses . for millisecond separator: 2016-11-04T09:00:59.122Z
  • adds .since() method to calculate a human-readable diff
  • support string/number input to .diff()
  • support ordinal inputs, like June 5th 2018
  • isAwake() method
  • alias for .plus() .minus() methods
  • .diff() without a unit does a couple units together
  • update zonefile to proper dst-flip time

v4.0.1

  • support .from() and .fromNow() methods

v4.1.0

  • fix 'February 30th' regression
  • remove denormalized .valid boolean on Spacetime class

v4.2.0

  • fix dayOfYear regression on 31st days
  • support space in ISO-186 format
  • update deps, use babel-env

v4.2.2

  • adds .extend() method for authoring plugins

v4.3.0

  • assume current year with input spacetime('July 5th')
  • do larger .diff() operations (gt 1yr) in fast-mode
  • support BC formatting of input and in s.format('year')
  • bug fix for iso-format hour-offsets (#58)

v4.4.0

  • big - swap interpretation of ISO date offsets -0500 → +5 offset #61

v4.5.0

  • update a few TZ offsets in mostly eastern-Russia
  • updates to 2019 Palestinian dst dates
  • fixes for missing immutable setter methods
spacetime - 3.1.0

Published by spencermountain over 6 years ago

dramatic speedup

before 20k dates:   3.3s
after 20k dates:    0.8s
spacetime - 3.0.1

Published by spencermountain over 6 years ago

  • fallback to UTC, instead of PST if no Intl is present
  • support passing-in offsets as ISO_8601 date-strings
  • add epoch-seconds warning msg
  • allow getting/setting new timezones