- 🚨 all methods now immutable by default.🚨
-- existing code will now need to be
s = s.add(1,'day')
--- (instead ofs.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
- 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%)
next()
andlast()
methods- support for century and decades
- full-api tests and docs
- added more iana timezones
- fixed zero-padding in iso offsets
- support half hour offsets in iso formats
- support more time input formats
- fixes offset input issue #103
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
- support
.from()
and.fromNow()
methods
- fix 'February 30th' regression
- remove denormalized
.valid
boolean on Spacetime class
- fix dayOfYear regression on 31st days
- support space in ISO-186 format
- update deps, use babel-env
- adds
.extend()
method for authoring plugins
- 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)
- big - swap interpretation of ISO date offsets
-0500 → +5 offset
#61
- update a few TZ offsets in mostly eastern-Russia
- updates to 2019 Palestinian dst dates
- fixes for missing immutable setter methods
- 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
- dramatic speedup by optimizing walkTo method
- update zonefile to 2018 dst dates
- fix major southern-hemisphere issue
- re-structure
d.timezone()
response - add
.hemisphere()
method - use proper short-day forms
- support unix/unicode time-formating basic-level
- add
.era()
get/set method - found 6 or 7 wrong offsets
- adds isBetween() method
- adds
spacetime.whereIts()
method - actually implement 😓 season by hemisphere
- adds
spacetime.i18n()
method - adds
spacetime.nearest()
method - support for
"quarterHour"
units - '4:15, 4:30, 4:45, 5:00' etc
- fix for inf-loop regression on DST-switch