diff --git a/src/ast/timestamp.rs b/src/ast/timestamp.rs index 68d926a..d2c404f 100644 --- a/src/ast/timestamp.rs +++ b/src/ast/timestamp.rs @@ -68,6 +68,9 @@ impl Timestamp { /// /// let ts = Org::parse("[2003-09-16 Tue 09:39-10:39]").first_node::().unwrap(); /// assert_eq!(ts.start_to_chrono().unwrap(), "2003-09-16T09:39:00".parse::().unwrap()); + /// + /// let ts = Org::parse("[2003-13-00 Tue 09:39-10:39]").first_node::().unwrap(); + /// assert!(ts.start_to_chrono().is_none()); /// ``` #[cfg(feature = "chrono")] pub fn start_to_chrono(&self) -> Option {