You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
parse_time cannot read explicit compact formats produced by format_time #1517
format_time produces compact time strings with explicit patterns such as HHmm and HHmmss. parse_time raises an exception for that output when given the same pattern.
The explicit numeric patterns should parse their corresponding strings as 15:30:00, 15:30:45, and 15:30:45 respectively, matching the formatted values.
Reproducibility
Reproduced on macOS arm64 with Python 3.10.14 using the official Babel 2.19.0 wheel and current master at 394f91a41e5e9582e4a61502be8269fe6bebb676 with the wheel's locale data.
Additional Information
The parser reads every consecutive digit run as one number. These examples contain one run, even though the pattern has two or three fixed-width numeric fields. The same parser already handles separated input, including 45:30:15 with ss:mm:HH. Current implementation
Activity