fn drop_string_tz_if_present(dt_str: &str) -> &str {
        if dt_str.len() > 6 {
            &dt_str[..(dt_str.len() - 6)]
        } else {
            dt_str
        }
    }
// some date strings end with " (CET)" timezone specifiers, but rust
// format strings can't parse that:
// %Z _Formatting only_: Local time zone name.
// often we don't need them, so drop them.
// this function is dumb, will dump the final 6 bytes if the
// string is long enough. don't want to add a regex lib
// dependency, don't feel like doing it more precisely.
some date strings end with " (CET)" timezone specifiers, but rust
format strings can't parse that:
%Z _Formatting only_: Local time zone name.
often we don't need them, so drop them.
this function is dumb, will dump the final 6 bytes if the
string is long enough. don't want to add a regex lib
dependency, don't feel like doing it more precisely.
some date strings end with " ( CET ) " timezone specifiers but rust format strings can ' t parse that : %Z _Formatting only_ : Local time zone name . often we don ' t need them so drop them . this function is dumb will dump the final 6 bytes if the string is long enough . don ' t want to add a regex lib dependency don ' t feel like doing it more precisely .
fn drop_string_tz_if_present(dt_str: &str) -> &str {
        if dt_str.len() > 6 {
            &dt_str[..(dt_str.len() - 6)]
        } else {
            dt_str
        }
    }
fn drop_string_tz_if_present ( dt_str : & str ) -> & str { if dt_str . len ( ) > 6 { & dt_str [ .. ( dt_str . len ( ) - 6 ) ] } else { dt_str } }
some date strings end with " (CET)" timezone specifiers, but rust
format strings can't parse that:
%Z _Formatting only_: Local time zone name.
some date strings end with " ( CET ) " timezone specifiers but rust format strings can ' t parse that : %Z _Formatting only_ : Local time zone name .
dt_str
&str
dt_str
&str