Aller au contenu principal

DateTime():second()

Returns the second of the minute of the DateTime object.

Signature

second(): number

Returns

  • Type: number
  • The second (0-59).

Examples

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