import * as mod from "https://deno.land/std@0.214.0/datetime/mod.ts";
Utilities for dealing with Date
objects.
This module is browser compatible.
Variables
v DAY | The number of milliseconds in a day. |
v HOUR | The number of milliseconds in an hour. |
The number of milliseconds in a minute. | |
The number of milliseconds in a second. | |
v WEEK | The number of milliseconds in a week. |
Functions
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. | |
Takes an input | |
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 | |
Returns the ISO week number of the provided date (1-53). |
Type Aliases
Return type for | |
Options for | |
T Unit | Duration units for |