MinutesPart

The minutes component of a duration: duration mod 60. Preserves the duration’s sign, so a negative duration produces a negative (or zero) result.

Category: Time Returns: int

Signature

MinutesPart(duration)

The argument is a duration in minutes, typically the result of another time function or a subtraction between two of them.

Examples

MinutesPart(125)                         // 5 (two hours, five minutes)
MinutesPart(-125)                        // -5, sign preserved
MinutesPart(FromHours(2) + FromMinutes(5))
                                          // 5

Notes

  • Requires time to be enabled for the project (Project, then Time). With time disabled, any expression using this function fails validation.
  • The sign preservation matters when the duration comes from a subtraction that could go negative. Wrap the duration in Abs first if you’re building player-facing text and want a plain positive number.
  • Pairs with HoursPart and DaysPart to decompose a duration into a “D days, H hours, M minutes” display.
Docs last synced: 2026-07-18
Screenshot viewer