Add time parse regex

This commit is contained in:
Matthias Beyer 2016-05-28 20:30:23 +02:00
parent 57dcd4f991
commit d431d3cb84

View file

@ -4,3 +4,7 @@ pub trait Parse : Sized {
} }
pub fn time_parse_regex() -> &'static str {
r#"(?P<Y>\d{4})-(?P<M>\d{2})-(?P<D>\d{2})(T(?P<h>\d{2})(:(?P<m>\d{2})(:(?P<s>\d{2}))?)?)?$"#
}