Primitive
time.format
BETAShort name: format
Version: 1.0.0
Format an instant as ISO, unix, date, or time output.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| format | string | true | Format mode: "iso", "unixSeconds", "unixMillis", "date", or "time". |
| instant | string | true | ISO-8601 instant to format. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| result | any | false | Formatted output as string or number. |