Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The Temporal.Instant.fromEpochMilliseconds()
static method creates a new Temporal.Instant
object from the number of milliseconds 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.