unixtime_microseconds_todatetime()unixtime_microseconds_todatetime()

将 unix-epoch 微秒转换为 UTC 日期/时间。Converts unix-epoch microseconds to UTC datetime.

语法Syntax

unixtime_microseconds_todatetime(*microseconds*)

参数Arguments

  • microseconds:一个实数,表示以微秒为单位的纪元时间戳。microseconds: A real number represents epoch timestamp in microseconds. 在纪元时间 (1970-01-01 00:00:00) 之前发生的 Datetime 时间戳值为负。Datetime 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 will be a datetime value. 如果转换不成功,则结果将为 null。If conversion is not successful, result will be null.

另请参阅See also

示例Example

print date_time = unixtime_microseconds_todatetime(1546300800000000)
date_timedate_time
2019-01-01 00:00:00.00000002019-01-01 00:00:00.0000000