[date.from-unix]
date.from-unix is a slot in the date namespace, in Hyperlambda, the language of Magic Cloud. Converts a Unix timestamp into a DateTime value.
- Value (
unix-timestamp,integer,number), required: Unix timestamp to convert - Returns: Resolves to the date represented by the supplied Unix timestamp
Guide: How to use [date.from-unix]
JSON declaration
This is the complete declaration of date.from-unix, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "date.from-unix",
"description": "Converts a Unix timestamp into a DateTime value",
"signature": {
"input": {
"kind": "unix-timestamp,integer,number",
"description": "Unix timestamp to convert",
"required": true,
"mode": "ValueOrExpression"
},
"output": {
"mode": "Value",
"kind": "date",
"description": "Resolves to the date represented by the supplied Unix timestamp"
}
}
}
← date.format |
all date.* slots |
date.max → |