Date object. It accepts, as input, the
formats listed below. It exports its functions in both camelCase and snake case formats. In other words, it would
unix_to_date() available pointing to the same function, for example.
This is the standard milliseconds since the UNIX epoch (1970-01-01) that you would get from
+new Date() / 1000.
This is a standard Microsoft
FILETIMEtimestamp, measured in 100 nanosecond intervals since 1601-01-01.
The time carried by the NTP protocol in seconds since 1900-01-01 along with a fractional second in microsecond intervals.
NTP network timestamp
Essentiall same as above except it accepts a
Uint8Arrayof raw input from the network packet. It would be 8 bytes in network order (high endian).
This takes an HFS+ timestamp measured in seconds since 1904-01-01.
OLE Automation timestamp
Sometimes also called a Microsoft timestamp. It's a fractional value counting seconds since 1899-01-01.
This is essentially the same as the
FILETIMEbut will return
nullfor marginal values.
A bit packed 32-bit value encoding a time and date with a 2 second level of precision.
constjs_to_dateunix_to_datefiletime_to_datentp_to_datenetwork_ntp_to_datehfs_to_dateole_to_dateldap_to_datedos_to_dateto_date=someTimestamp = + '2016-09-22T19:22:14Z'someUnixTimestamp = someTimestamp / 1000;let ts1 =ts2 = ;;// orconstts = ;let tsa = tstsb = ts;;