Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
APPLIES TO:
NoSQL
Converts the specified number of ticks to a date and time value.
TicksToDateTime(<numeric_expr>)
Description | |
---|---|
numeric_expr |
A numeric expression. |
Returns a UTC date and time string in the ISO 8601 format YYYY-MM-DDThh:mm:ss.fffffffZ
.
The following example converts the ticks to a date and time value.
SELECT VALUE {
parseTicks: TicksToDateTime(15973607943002652),
parseUnixEpoch: TicksToDateTime(0),
parseWindowsEpoch: TicksToDateTime(-116444736000000000)
}
[
{
"parseTicks": "2020-08-13T23:19:54.3002652Z",
"parseUnixEpoch": "1970-01-01T00:00:00.0000000Z",
"parseWindowsEpoch": "1601-01-01T00:00:00.0000000Z"
}
]
- This function returns
undefined
if the ticks value specified is invalid.