Core functions for working with dates
Generate a new DateRecord
newDateRecord 2018 2 13 19 45 0 0 == {
year = 2018
, month = 2
, day = 13
, hour = 19
, minute = 45
, second = 0
, millis = 0
}Given a datetime, get the posix time.
Given a Posix time, get the human datetime.
Store the configuration for getting i18n and l10n formats.
Gets the difference in minutes given the current Time Zone and the utc time.
Adjust the milliseconds of the posix time.
The time has the milliseconds as if it was using UTC but it actually has a tz to be applied. So if we had 2018/10/28T01:30:00 UTC we want to convert it to 2018/10/28T01:30:00 zone so we have to substract the offset.
Given a Zone and a Posix time, add the timezone offset to get the corrected date.
Store the date in a record.