Skip to content

destillationapp-frontend v0.1.0


destillationapp-frontend / helpers/dateHelpers / getMinutesFromTime

Function: getMinutesFromTime()

getMinutesFromTime(timeString): number

Defined in: helpers/dateHelpers.ts:24

Converts a formatted time string (HH:MM) to the total number of minutes.

Parameters

timeString

string

The time string in "HH:MM" format.

Returns

number

The total number of minutes.

Example

ts
getMinutesFromTime("01:15"); // 75