Duration.Minutes
The minutes part of a duration, 0 to 59, beyond its whole hours.
Group: Dates and times. Power Query M has it too: a query that uses it is written as in Power BI.
Syntax
Duration.Minutes(duration as nullable duration) as nullable number
| Parameter | Type | Description |
|---|---|---|
duration | nullable duration | The duration; null gives null. |
Returns
nullable number. The minutes left over after the whole hours.
Remarks
- This is a part, not a total: 1 hour and 45 minutes give 45.
Duration.TotalMinutesgives 105. - A negative duration gives negative parts.
Examples
The minutes of a duration
Duration.Minutes(#duration(0, 1, 45, 0))
45
A delivery time
Duration.Minutes(#datetime(2024, 3, 18, 10, 0, 0) - #datetime(2024, 3, 15, 14, 30, 0))
30
From 15 March 14:30 to 18 March 10:00 is 2 days, 19 hours and 30 minutes.