Instant
A Temporal.Instant
is an exact point in time, with a precision in nanoseconds. No time zone or calendar information is present. Therefore, Temporal.Instant
has no concept of days, months, or even hours.
For convenience of interoperability, it internally uses nanoseconds since the {@link https://en.wikipedia.org/wiki/Unix_time|Unix epoch} (midnight UTC on January 1, 1970). However, a Temporal.Instant
can be created from any of several expressions that refer to a single point in time, including an {@link https://en.wikipedia.org/wiki/ISO_8601|ISO 8601 string} with a time zone offset such as '2020-01-23T17:04:36.491865121-08:00'.
See https://tc39.es/proposal-temporal/docs/instant.html for more details.
Types
Properties
Functions
Returns a value as a string value appropriate to the host environment's current locale.
Converts a value to a string by using the current or specified locale.