Moment.js v2.0.0 Release Notes
-
- ๐ Release Feb 9, 2013
โ Added short form localized tokens.
โ Added ability to define language a string should be parsed in.
โ Added support for reversed add/subtract arguments.
โ Added support for
endOf('week')
andstartOf('week')
.๐ Fixed the logic for
moment#diff(Moment, 'months')
andmoment#diff(Moment, 'years')
moment#diff
now floors instead of rounds.Normalized
moment#toString
.โ Added
isSame
,isAfter
, andisBefore
methods.โ Added better week support.
โ Added
moment#toJSON
๐ Bugfix: Fixed parsing of first century dates
๐ Bugfix: Parsing 10Sep2001 should work as expected
๐ Bugfix: Fixed weirdness with
moment.utc()
parsing.๐ Changed language ordinal method to return the number + ordinal instead of just the ordinal.
๐ Changed two digit year parsing cutoff to match strptime.
โ Removed
moment#sod
andmoment#eod
in favor ofmoment#startOf
andmoment#endOf
.โ Removed
moment.humanizeDuration()
in favor ofmoment.duration().humanize()
.โ Removed the lang data objects from the top level namespace.
Duplicate
Date
passed tomoment()
instead of referencing it.