GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

12 results across 6 corpora for Temporal.Instant.prototype.toString().

Papers 6

Developer library 6

Date

eturns the number of milliseconds since January 1, 1970 00:00:00 UTC, with leap seconds ignored. ## Instance properties These properties are defined on `Date.prototype` and shared by all `Date` instances. - Date.prototype.constructor - : The constructor function that created the instance object. For `Date` instances, the initial value is the Date constructor. ## Instance methods - Date.prototype.getDate() -

Date.prototype.toTemporalInstant()

The **`toTemporalInstant()`** method of Date instances returns a new Temporal.Instant object with the same epochMilliseconds value as this date's [timestamp](/docs/Web/JavaScript/Reference/Global_Objects/Date#the_epoch_timestamps_and_invalid_date). Use this method to convert legacy `Date` values to the `Temporal` API, then further convert it to other Temporal classes as necessary. ## Syntax ```js-nolint toTemporal

Temporal

[`[Symbol.toStringTag]`](/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag) property is the string `"Temporal"`. This property is used in Object.prototype.toString(). ## Specifications ## Browser compatibility ## See also - Intl.DateTimeFormat - Intl.RelativeTimeFormat - Intl.DurationFormat - [Temporal polyfill by proposal champions](https://www.npmjs.com/package/@js-temporal/polyfill) - [Tempo

Temporal.Instant

month, you need to convert it to a Temporal.ZonedDateTime first, using toZonedDateTimeISO(). You can convert from `Date` to `Temporal.Instant` using the Date.prototype.toTemporalInstant() method, which should be preferred over other methods such as Temporal.Instant.fromEpochMilliseconds() because the former involves less user code and may be more optimized. You can also convert from `Temporal.Instant` to `Date` usi

Temporal.Instant.fromEpochNanoseconds()

ber of nanoseconds since the Unix epoch (midnight at the beginning of January 1, 1970, UTC). To convert a Date object to a `Temporal.Instant` object, use Date.prototype.toTemporalInstant() instead. ## Syntax ```js-nolint Temporal.Instant.fromEpochNanoseconds(epochNanoseconds) ``` ### Parameters - `epochNanoseconds` - : A [BigInt](/docs/Web/JavaScript/Reference/Global_Objects/BigInt) representing the number of

Temporal.Instant() constructor

e.log(sts1Liftoff.toString()); // 1981-04-12T12:00:04Z ``` ## Specifications ## Browser compatibility ## See also - Temporal.Instant - Temporal.Instant.prototype.epochNanoseconds - Temporal.Instant.from() - Temporal.Instant.fromEpochMilliseconds() - Temporal.Instant.fromEpochNanoseconds()

JSON results · Services directory