🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
OCLOperators Minutes

.Minutes returns the minutes part of a TimeSpan as a whole number from 0 to 59 (-59 to 0 for a negative TimeSpan). Days and hours are not included; for that use TotalMinutes.

Syntax

aTimeSpan.Minutes

Returns

Integer

Example

(DateTime.Parse('2026-11-23 14:30:00.250') - DateTime.Parse('2026-11-20 08:15:30')).Minutes

Result: 14

Common pattern

Show a duration as "hh:mm":

let ts = self.ChangeTime - self.CreateTime in
  ts.Hours.ToString + ':' + ts.Minutes.ToString

See also