- Changed implementation of
Date.today()
,Month.thisMonth()
,Time.now()
(and consequentlyDateTime.now()
) to support java versions < 1.8.
- Added
toPosixSeconds()
method andfromPosixSeconds()
function ontoDate
andDateTime
. - Fix:
Date.fromDays()
now returnsnull
if the number of days is greater than those in the maximum date. It previously returned a date in the year 9999 depending on the number additional days above the maximum.
Duration
now has atoDays()
method for getting the number of days within it, ignoring hours, minutes, and seconds.
Duration
's internal number of seconds is nowLong
to account for durations of up to the maximum date minus the minimum date.- The method
between
onDuration
has been added to allow the user to find the difference between twoDateTime
s as aDuration
. - The
Duration(totalSeconds: Int)
constructor has been deprecated in favour ofDuration(totalSeconds: Long)
. This will be removed in version 2.0.0.
- Fixed package naming
- Added getters to
DateTime
- Fix module name
- API stabilised