Parse a duration
parse_durationConvert duration strings like "1h30", "1:30", or "2.5" into whole minutes for UseHourly, so time entries are parsed correctly for logging and invoicing.
Instructions
Turn text like "1h30", "1:30" or "2.5" into whole minutes, the way UseHourly reads it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The duration text to read, e.g. 1h30 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| hours | No | ||
| minutes | Yes | Whole minutes, or null when the text could not be read |