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
but that is inconsistent with the C89 value. %H should be hour as a decimal number, 24 hour clock (range [00-23]). Additionally, the minute format, %M seems to be missing, which is what the %H description seems to be for.
The text was updated successfully, but these errors were encountered:
I looked into it, and the documentation is wrong but the functionality is correctly implemented. I'll add a specific test to show that, but there should be not need for a code change.
The following test is successful (and will be added to close this issue).
let e = Epoch::from_gregorian_utc_hms(2015,2,7,11,22,33);let fmtd = Formatter::new(e,Format::from_str("%H:%M").unwrap());assert_eq!(format!("{fmtd}"), format!("11:22"));
The documentation says:
but that is inconsistent with the C89 value.
%H
should behour as a decimal number, 24 hour clock (range [00-23])
. Additionally, the minute format,%M
seems to be missing, which is what the%H
description seems to be for.The text was updated successfully, but these errors were encountered: