unixtime_nanoseconds_todatetime()

將 unix-epoch 奈秒轉換成 UTC 日期時間。

語法

unixtime_nanoseconds_todatetime(納 秒)

深入瞭解 語法慣例

參數

名稱 類型 必要 Description
奈秒 real ✔️ nanoseconds 中的 Epoch 時間戳。 在 datetime epoch 時間之前發生的值, (1970-01-01 00:00:00) 具有負時間戳值。

傳回

如果轉換成功,結果會是 datetime 值。 否則,結果為 null。

範例

print date_time = unixtime_nanoseconds_todatetime(1546300800000000000)

輸出

date_time
2019-01-01 00:00:00.0000000