unixtime_milliseconds_todatetime()

Converts unix-epoch milliseconds to UTC datetime.

Syntax

unixtime_milliseconds_todatetime(milliseconds)

Parameters

Name Type Required Description
milliseconds real The epoch timestamp in microseconds. A datetime value that occurs before the epoch time (1970-01-01 00:00:00) has a negative timestamp value.

Returns

If the conversion is successful, the result is a datetime value. Otherwise, the result is null.

Example

print date_time = unixtime_milliseconds_todatetime(1546300800000)

Output

date_time
2019-01-01 00:00:00.0000000

See also