class Temporal.PlainTime
unstable
A Temporal.PlainTime represents a wall-clock time, with a precision in
nanoseconds, and without any time zone. "Wall-clock time" refers to the
concept of a time as expressed in everyday usage — the time that you read
off the clock on the wall. For example, it could be used to represent an
event that happens daily at a certain time, no matter what time zone.
Temporal.PlainTime refers to a time with no associated calendar date; if you
need to refer to a specific time on a specific day, use
Temporal.PlainDateTime. A Temporal.PlainTime can be converted into a
Temporal.PlainDateTime by combining it with a Temporal.PlainDate using the
toPlainDateTime() method.
See https://tc39.es/proposal-temporal/docs/time.html for more details.
readonly
[Symbol.toStringTag]: "Temporal.PlainTime"readonly
hour: numberreadonly
microsecond: numberreadonly
millisecond: numberreadonly
minute: numberreadonly
nanosecond: numberreadonly
second: numberadd(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainTimeequals(other: ): booleanround(roundTo: RoundTo<"hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond">): Temporal.PlainTimesince(other: ,options?: DifferenceOptions<"hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond">,): Temporal.Durationsubtract(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainTimetoJSON(): stringtoLocaleString(locales?: string | string[],options?: Intl.DateTimeFormatOptions,): stringtoString(options?: ToStringPrecisionOptions): stringuntil(other: ,options?: DifferenceOptions<"hour"
| "minute"
| "second"
| "millisecond"
| "microsecond"
| "nanosecond">,): Temporal.DurationvalueOf(): neverwith(timeLike: Temporal.PlainTime | PlainTimeLike,options?: AssignmentOptions,): Temporal.PlainTimecompare(one: ,two: ,): ComparisonResultfrom(item: ,options?: AssignmentOptions,): Temporal.PlainTime