fromParts
now clamps out-of-range parts instead of underflowing or overflowing themfromCalendarDate
now clamps out-of-range days instead of underflowing or overflowing themfromIsoString
- now returns a
Result String Date
instead of aMaybe Date
, providing a reason when failing to produce aDate
- now fails when given an invalid date/time instead of underflowing or overflowing the invalid parts
- now accepts a comma as a decimal mark and a minus sign in the time offset
- now returns a
isBetween
now expects its first two arguments given in ascending order (i.e.isBetween min max x
) instead of accepting either orderDate.Extra.Facts
number helpers were moved toDate.Extra
and renamedmonthNumberFromMonth
-->monthToNumber
monthFromMonthNumber
-->numberToMonth
weekdayNumberFromDayOfWeek
-->weekdayToNumber
dayOfWeekFromWeekdayNumber
-->numberToWeekday
fromSpec
now takes its three arguments in the reverse orderTimeSpec
constructors were renamedatTime
-->time
noTime
-->midnight
DateSpec
constructorweekDate
now takes aDate.Day
instead of anInt
to represent a weekday
Date.Extra.Facts
functionsisLeapYear
,daysInMonth
,daysBeforeStartOfMonth
Date.Extra.Facts
constantsmsPerSecond
,msPerMinute
,msPerHour
,msPerDay
,months
range
: in cases where there was more than one way to align a list of dates within the start and end dates,range
would align them closest to the end date;range
now aligns them closest to the start date, which is less surprising
toRataDie
fromRataDie