diff --git a/libimagtimeui/src/datetime.rs b/libimagtimeui/src/datetime.rs index 4d1c4355..b78a7436 100644 --- a/libimagtimeui/src/datetime.rs +++ b/libimagtimeui/src/datetime.rs @@ -39,7 +39,9 @@ impl Into for DateTime { impl Parse for DateTime { fn parse(s: &str) -> Option { - unimplemented!() + Date::parse(s) + .and_then(|d| Time::parse(s).map(|t| (d, t))) + .map(|(d, t)| DateTime::new(d, t)) } }