UNSTABLE: Utilities for dealing with Date objects
The number of milliseconds in a day.
Returns the number of the day in the year in the local time zone.
Returns the number of the day in the year in UTC time.
Returns the difference of the 2 given dates in the given units. If the units are omitted, it returns the difference in the all available units.
Return type for difference.
Takes an input date and a formatString to format to a string.
The number of milliseconds in an hour.
Returns whether the given date or year (in number) is a leap year or not in the local time zone. based on: https://docs.microsoft.com/en-us/office/troubleshoot/excel/determine-a-leap-year
Returns whether the given date or year (in number) is a leap year or not in UTC time. This always returns the same value regardless of the local timezone. based on: https://docs.microsoft.com/en-us/office/troubleshoot/excel/determine-a-leap-year
The number of milliseconds in a minute.
Takes an input string and a formatString to parse to a date.
The number of milliseconds in a second.
Duration units for DifferenceFormat and
DifferenceOptions.
The number of milliseconds in a week.
Returns the ISO week number of the provided date (1-53).
Returns the number of the day in the year in the local time zone.
Returns the number of the day in the year in UTC time.
Returns the difference of the 2 given dates in the given units. If the units are omitted, it returns the difference in the all available units.
Return type for difference.
Duration units for DifferenceFormat and
DifferenceOptions.
Takes an input date and a formatString to format to a string.
Returns whether the given date or year (in number) is a leap year or not in the local time zone. based on: https://docs.microsoft.com/en-us/office/troubleshoot/excel/determine-a-leap-year
Returns whether the given date or year (in number) is a leap year or not in UTC time. This always returns the same value regardless of the local timezone. based on: https://docs.microsoft.com/en-us/office/troubleshoot/excel/determine-a-leap-year
Takes an input string and a formatString to parse to a date.
Returns the ISO week number of the provided date (1-53).