Aller au contenu principal

DateTime():minute()

Returns the minute of the hour of the DateTime object.

Signature

minute(): number

Returns

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

Examples

local date = DateTime(2024, 1, 15, 14, 30, 0)
local minute = date:minute()
toast("Minute: " .. minute) -- Output: 30