Skip to main content

split_embedded_timezone

Function split_embedded_timezone 

Source
pub fn split_embedded_timezone(rest: &str) -> (&str, Option<&str>)
Expand description

Split an ISO 8601 time portion (the part after T) into the bare time and an optional embedded timezone suffix. A trailing Z normalises to the static "+0000"; a trailing ±HHMM is borrowed from the input. Otherwise the whole string is the time and any timezone arrives separately.