Milliseconds from epoch
Offset number for nanosecond precision
Offset number for year which must be a multiple of 400 to avoid leap year calculation
Adds offset in nanosecond precision.
offset number for nanosecond precision in addition.
Returns a number, between 0 and 999999999, representing the nanoseconds.
Returns a number representing the seconds since epoch aka time_t.
JavaScript has the Double precision per default. Instead, Call Timestamp#writeInt64BE to retrieve 64bit long long precision time_t.
Returns a number representing the year like Date#getUTCFullYear.
Returns a Date instance.
Do not call Date#getUTCFullYear nor Date#getFullYear with the Date instance. Any properties other than those two are correct. Instead, Call Timestamp#getYear to retrieve the year as Timestamp has year offset.
Returns a JSON string representation like: "2017-11-26T11:27:58.737Z"
Returns a string formatted like strftime does.
"%Y-%m-%dT%H:%M:%S.%NZ", "%a, %b %d %X %Y %z (%Z)", etc.
Writes big endian 64bit time_t of 8 bytes sequence.
Buffer, Array, Uint8Array, etc.
Writes little endian 64bit time_t of 8 bytes sequence.
Buffer, Array, Uint8Array, etc.
Creates a Timestamp instance from Date instance or milliseconds since epoch.
Milliseconds since epoch
Creates a Timestamp instance from string like: "2017-11-26T11:27:58.737Z"
W3C Date and Time Formats
Creates a Timestamp instance from seconds since epoch aka time_t.
Seconds since epoch
Generated using TypeDoc
Timestamp for 64-bit time_t, nanosecond precision and strftime
Yusuke Kawasaki
MIT
https://github.com/kawanet/timestamp-nano