Add time parse regex
This commit is contained in:
parent
57dcd4f991
commit
d431d3cb84
1 changed files with 4 additions and 0 deletions
|
@ -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}))?)?)?$"#
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue