We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7ed14e + 46a82b7 commit 7119769Copy full SHA for 7119769
src/parse_time_only_str.rs
@@ -4,7 +4,7 @@ use regex::Regex;
4
mod time_only_formats {
5
pub const HH_MM: &str = "%R";
6
pub const HH_MM_SS: &str = "%T";
7
- pub const TWELVEHOUR: &str = "%r";
+ pub const TWELVE_HOUR: &str = "%r";
8
}
9
10
/// Convert a military time zone string to a time zone offset.
@@ -55,7 +55,7 @@ fn parse_time_with_offset_multi(
55
for fmt in [
56
time_only_formats::HH_MM,
57
time_only_formats::HH_MM_SS,
58
- time_only_formats::TWELVEHOUR,
+ time_only_formats::TWELVE_HOUR,
59
] {
60
let parsed = match NaiveTime::parse_from_str(s, fmt) {
61
Ok(t) => t,
0 commit comments