パラメーターをタイプに応じて日時値に変換します。
変換
toDateTime(<parameters>)
パラメーター | タイプ |
---|---|
ISO-8601 形式の日時 | 文字列 |
タイムゾーン ID | 文字列 |
タイムゾーンを含まない日時 | 日時のみ |
エポックのミリ秒単位の整数値 | 整数 |
タイムゾーン ID は文字列定数である必要があります。フィールド参照や式は使用できません。データタイプについて詳しくは、このページを参照してください。
toDateTime(<string>)
toDateTime(<stringified time zone id>, <dateTimeOnly>)
toDateTime(<integer>)
dateTime を返します。
toDateTime ("2016-08-18T23:17:59.123Z")
2016-08-18T23:17:59.123Z を返します。
toDateTime(toDateTimeOnly("UTC", "2016-08-18T23:17:59.123"))
2016-08-18T23:17:59.123Z を返します。
toDateTime(1560762190189)
2019-06-17T09:03:10.189Z を返します。