parse_duration
Convert human-readable duration strings like "2h30m" or "1d6h" to total seconds for time estimation and scheduling.
Instructions
Parses a human-readable duration string into structured seconds. Supports combinations of y (years), mo (months), w (weeks), d (days), h (hours), m (minutes), s (seconds). Examples: '2h30m', '1d6h', '1w3d', '45m'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration_string | Yes | Duration string like "2h30m", "1d6h", "45m". |