mirror of
https://github.com/rclone/rclone.git
synced 2026-10-09 22:45:26 -04:00
The docs describe a duration as a sequence of numbers each with a unit suffix, including d, w, M and y, but a sequence that used one of those units, such as --max-age 1d12h, failed with a confusing error about parsing it as a date. Only a single number with one of them, like 1.5d, or a sequence of the time.ParseDuration units was accepted. Parse such sequences before falling back to dates, rejecting ones too long to represent.