Avatar for the python-babel user
python-babel
babel
BlogDocsChangelog

Performance History

Latest Results

Clamp rounded fractional seconds to the field width DateTimeFormat rounds the fraction to the requested number of digits, so a microsecond value close enough to a whole second rounds up to a value one digit too wide: time(1, 2, 3, 990000) formatted as 'S' gave '10' rather than '9', and 999999 as 'SSSS' gave '10000'. Clamp the rounded value to the largest the field can hold. Rebased onto current master, where the DateTimeFormat tests were moved out of tests/test_dates.py into tests/test_date_time_format.py and flattened from methods into module-level functions; the regression test follows them. Signed-off-by: Vineeth Sai <vineethsai4444@gmail.com>
vineethsaivs:fix/frac-seconds-field-overflow
11 days ago

Latest Branches

CodSpeed Performance Gauge
0%
Clamp rounded fractional seconds to the field width#1292
11 days ago
dbd44a5
vineethsaivs:fix/frac-seconds-field-overflow
CodSpeed Performance Gauge
0%
11 days ago
ccfa1d9
vineethsaivs:fix/pofile-invalid-msgstr-index
CodSpeed Performance Gauge
0%
12 days ago
c5ebd9f
remove-extra-license-field
© 2026 CodSpeed Technology
Home Terms Privacy Docs