メインコンテンツまでスキップ

DateTime():unix()

DateTime オブジェクトの Unix タイムスタンプ(Unix エポックからの経過秒数)を返します。

シグネチャ

unix(): number

戻り値

number - 秒単位の Unix タイムスタンプ。