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

DateTime():second()

DateTime オブジェクトの分の秒を返します。

シグネチャ

second(): number

戻り値

  • 型: number
  • 秒(0〜59)。

local date = DateTime(2024, 1, 15, 14, 30, 45)
local second = date:second()
toast("Second: " .. second) -- 出力: 45