Rohit Behera
d8794f8192
fs: fix durations like 1d12h being rejected
...
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.
2026-09-30 17:55:19 +01:00
..
2026-09-15 16:40:40 +01:00
2026-08-17 08:13:21 +01:00
2025-07-08 12:08:14 +02:00
2026-07-09 17:46:31 +01:00
2025-02-28 11:31:14 +00:00
2026-09-08 17:13:23 +01:00
2025-09-15 12:45:57 +01:00
2024-04-18 16:53:55 +02:00
2026-07-02 11:21:21 +01:00
2026-09-25 17:11:08 +01:00
2026-09-05 12:02:36 +01:00
2025-07-23 15:09:51 +01:00
2026-06-15 08:14:03 +02:00
2026-09-04 19:00:22 +01:00
2026-09-20 14:23:50 +01:00
2026-07-12 13:26:17 +01:00
2026-07-29 20:29:13 +01:00
2025-11-17 16:52:30 +00:00
2026-09-30 12:12:33 +01:00
2026-09-30 12:12:33 +01:00
2026-09-30 17:53:20 +01:00
2026-09-04 19:00:22 +01:00
2026-07-16 16:11:22 +01:00
2026-07-16 16:11:22 +01:00
2024-07-15 11:09:54 +01:00
2023-10-23 15:43:55 +01:00
2026-09-30 17:30:06 +01:00
2026-09-30 17:30:06 +01:00
2018-08-21 10:58:59 +01:00
2019-02-07 11:57:26 +00:00
2026-06-05 15:21:01 +01:00
2026-06-05 15:21:01 +01:00
2026-08-13 20:10:41 +02:00
2026-08-13 20:10:41 +02:00
2024-07-15 11:09:54 +01:00
2024-08-15 22:08:34 +01:00
2024-07-15 11:09:54 +01:00
2023-10-03 15:14:24 +01:00
2024-04-18 16:53:55 +02:00
2024-04-18 16:53:55 +02:00
2018-01-15 17:51:14 +00:00
2024-03-07 11:09:07 +00:00
2024-02-27 10:56:19 +00:00
2019-07-28 18:47:38 +01:00
2019-06-09 15:57:05 +01:00
2024-07-15 11:09:54 +01:00
2026-06-11 21:29:45 +01:00
2024-07-15 11:09:54 +01:00
2023-10-03 15:14:24 +01:00
2025-04-08 15:12:53 +01:00
2023-04-28 14:31:05 +01:00
2020-06-30 12:01:36 +01:00
2025-11-03 14:44:39 +00:00
2026-08-14 18:40:40 +02:00
2026-07-15 16:43:37 +01:00
2026-09-26 12:51:07 +01:00
2024-04-18 16:53:55 +02:00
2023-11-18 17:49:35 +00:00
2024-02-27 10:56:19 +00:00
2025-09-15 12:45:57 +01:00
2022-05-12 20:27:13 +01:00
2024-09-06 17:04:18 +01:00
2026-06-05 15:21:01 +01:00
2025-07-23 15:09:51 +01:00
2026-06-05 15:21:01 +01:00
2026-07-04 09:11:52 +01:00
2026-08-21 12:23:31 +01:00
2023-05-14 11:22:57 +01:00
2023-05-14 11:22:57 +01:00
2022-11-21 08:02:09 +00:00
2023-05-09 16:28:10 +01:00
2025-11-03 14:44:39 +00:00
2025-03-25 15:49:27 +00:00
2026-09-30 17:55:19 +01:00
2026-09-30 17:55:19 +01:00
2024-07-15 11:09:54 +01:00
2023-05-04 15:04:11 +01:00
2026-09-19 10:20:49 +01:00
2026-09-25 17:09:52 +01:00
2026-09-10 15:51:51 +01:00
2026-09-25 17:09:52 +01:00
2023-10-03 15:14:24 +01:00
2023-10-03 15:14:24 +01:00
2024-07-15 11:09:54 +01:00
2023-03-27 16:17:49 +01:00
2026-09-09 10:31:29 +01:00
2026-09-09 10:31:29 +01:00
2022-05-17 12:10:01 +01:00
2026-08-20 12:16:48 +01:00
2022-05-17 12:10:01 +01:00
2026-07-31 18:21:36 +01:00