Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The valueOf()
method of Temporal.Instant
instances throws a TypeError
, which prevents Temporal.Instant
instances from being implicitly converted to primitives when used in arithmetic or comparison operations.