Changelog
[0.17.0] - 2015-09-29
Fixed a lot of bugs appearing when date is modifying into other time zone (e.g., when adding months and original date is in DST but new date is not).
Prevent instances of Date to lose milliseconds value when passed to.
parse
in IE10.
setISOWeek
now keeps time from original date.
Internal: reuse getDaysInMonth
inside of addMonths
.
differenceInDays
getTimeSinceMidnight
format
now has new format key aa
, which returns a.m.
/p.m.
as opposed to a
that returns am
/pm
.
Complete UMD package (for Bower and CDN).
Changelog
[0.16.0] - 2015-09-01
Use parse
to clean date arguments in all functions.
parse
now fallbacks to new Date
when the argument
is not an ISO formatted date.
Internal: reuse getDaysInMonth
inside of setMonth
.
addQuarters
addWeeks
endOfQuarter
getDate
getDay
getDaysInMonth
getHours
getISOWeeksInYear
getMilliseconds
getMinutes
getMonth
getSeconds
getYear
isLeapYear
isSameHour
isSameMinute
isSameQuarter
isSameSecond
lastDayOfQuarter
lastDayOfWeek
max
min
setDate
setDay
setHours
setMilliseconds
setMinutes
setSeconds
startOfQuarter
subQuarters
subWeeks
Changelog
[0.15.0] - 2015-08-26
format
now returns a.m.
/p.m.
instead of am
/pm
.
setMonth
now sets last day of month if original date was last day
of longer month.
Internal: Fix code style according to ESLint.
Internal: Make tests run through all time zones.
getQuarter
setQuarter
getDayOfYear
setDayOfYear
isPast
addSeconds
subSeconds
startOfSecond
endOfSecond
startOfMinute
endOfMinute
addMilliseconds
subMilliseconds
endOfYear
addYears
subYears
lastDayOfYear
lastDayOfMonth
Changelog
[0.14.11] - 2015-08-21
format
now uses parse
to avoid time zone bugs.setIsoWeek
now sets time to the start of the day.Changelog
[0.14.8] - 2014-12-25
format
function now behaves correctly with pm
/am
.