[time.format]
time.format is a slot in the time namespace, in Hyperlambda, the language of Magic Cloud. Formats a TimeSpan value.
- Value (
timespan), required: Time span to format - Returns: Resolves to the formatted time string
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
[format] |
string | yes | Format string. |
Guide: How to use [time.format]
JSON declaration
This is the complete declaration of time.format, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "time.format",
"description": "Formats a TimeSpan value",
"signature": {
"input": {
"kind": "timespan",
"description": "Time span to format",
"required": true,
"mode": "ValueOrExpression"
},
"children": {
"format": {
"type": "string",
"kind": "date-format",
"description": "Format string",
"required": true,
"mode": "ValueOrExpression",
"cardinality": "ExactlyOne",
"role": "Option",
"projection": "Value"
}
},
"output": {
"mode": "Value",
"kind": "formatted-time,text",
"description": "Resolves to the formatted time string"
}
}
}
all time.* slots |
time.total-milliseconds → |