Standard built-ins
Temporal.PlainTime
Wall-clock time without date or zone. Temporal values are immutable. This guarded example demonstrates construction when available; the Temporal branch is NOT RUN locally. Stage 4 does not guarantee implementation support.
Formal Syntax & Structure
javascript syntaxjavascript
Temporal.PlainTime.from(value)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| value | String | Object | Compatible representation for from; consult type-specific grammar. |
Return Value
Temporal.PlainTime
Constructed immutable value.
Working Example
Example Snippetjavascript
if(typeof Temporal==="object"&&typeof Temporal.PlainTime?.from==="function"){console.log(Temporal.PlainTime.from("12:30").toString());}else{console.log("Temporal unavailable");}