TimestampToDateTime (NoSQL query)
APPLIES TO:
NoSQL
Converts the specified timestamp to a date and time value.
Syntax
TimestampToDateTime(<numeric_expr>)
Arguments
Description | |
---|---|
numeric_expr |
A numeric expression. |
Note
For more information on the ISO 8601 format, see ISO 8601.
Return types
Returns a UTC date and time string in the ISO 8601 format YYYY-MM-DDThh:mm:ss.fffffffZ
.
Examples
The following example converts the ticks to a date and time value.
SELECT VALUE {
parseTicks: TimestampToDateTime(1597360794300),
parseUnixEpoch: TimestampToDateTime(0),
parseWindowsEpoch: TimestampToDateTime(-11644473600000)
}
[
{
"parseTicks": "2020-08-13T23:19:54.3000000Z",
"parseUnixEpoch": "1970-01-01T00:00:00.0000000Z",
"parseWindowsEpoch": "1601-01-01T00:00:00.0000000Z"
}
]
Remarks
- This function returns
undefined
if the timestamp value specified is invalid.
Related content
प्रतिक्रिया
https://aka.ms/ContentUserFeedback.
जल्द आ रहा है: 2024 के दौरान हम सामग्री के लिए फीडबैक तंत्र के रूप में GitHub मुद्दों को चरणबद्ध तरीके से समाप्त कर देंगे और इसे एक नई फीडबैक प्रणाली से बदल देंगे. अधिक जानकारी के लिए, देखें:के लिए प्रतिक्रिया सबमिट करें और देखें