PlainTime
The Temporal.PlainTime object represents a wall-clock time, with no date or time zone.
See: Temporal.PlainTime
Fields
- _inner:*abi.c.PlainTime
- *abi.c.PlainTime
Types
Functions
- init
Creates a new PlainTime from the given time components.
- from
Parses a PlainTime from a string.
- compare
Compares two PlainTime instances by their time values.
- equals
Returns true if this PlainTime is equal to another (same time values).
- add
Returns a new PlainTime moved forward by the given duration, wrapping around the clock if necessary.
- subtract
Returns a new PlainTime moved backward by the given duration, wrapping around the clock if necessary.
- until
Returns the duration from this PlainTime to another.
- since
Returns the duration from another PlainTime to this one.
- round
Returns a new PlainTime rounded to the given unit and options.
- hour
Returns the hour component of this time (0-23).
- minute
Returns the minute component of this time (0-59).
- second
Returns the second component of this time (0-59).
- millisecond
Returns the millisecond component of this time (0-999).
- microsecond
Returns the microsecond component of this time (0-999).
- nanosecond
Returns the nanosecond component of this time (0-999).
- with
Returns a new PlainTime with some fields replaced by new values.
- toString
Returns a string representing this PlainTime in RFC 9557 format.
- toJSON
Returns a string representing this PlainTime in RFC 9557 format (ISO 8601).
- toLocaleString
Returns a language-sensitive string representation of this PlainTime.
- valueOf
Throws an error; valueOf() is not supported for PlainTime.
Aliases
- RoundingMode
RoundingMode
- DifferenceSettings
DifferenceSettings
- RoundOptions
RoundingOptions