timestamp-datetime
Returns the datetime value (as an xs:dateTime) in UTC, converted from the stored number of seconds since the Unix epoch.
Languages
Built-in
Parameters
Name | Type | Description |
|---|---|---|
timestamp | bson:timestamp | The BSON timestamp value from which the datetime in UTC is extracted. |
Example
This example shows how the UTC datetime is extracted from a BSON timestamp (see screenshot below). The timestamp-datetime function extracts the datetime in UTC from the created node of the MongoDB component.

An excerpt of the output is provided below:
5E361F8A640000000000012D,2020-02-02T01:02:02Z,100,301,2020-02-02T01:02:02Z,McLaren Mercedes
5E361F8A640000000000012E,2020-02-02T01:02:02Z,100,302,2020-02-02T01:02:02Z,Ferrari