diff options
author | Nora <nora.widdecke@tu-bs.de> | 2019-01-18 22:50:21 +0100 |
---|---|---|
committer | Nora <nora.widdecke@tu-bs.de> | 2019-01-18 23:09:20 +0100 |
commit | 34483ee1270d84cb42a122965917916094855508 (patch) | |
tree | 8998613d6fb98188c416eda494e03129e1b5ffed /src/testdata.rs | |
parent | db3f62f570c874056846b7f349e700dc1280837d (diff) |
dateutil: add testable now() function
Diffstat (limited to 'src/testdata.rs')
-rw-r--r-- | src/testdata.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdata.rs b/src/testdata.rs index 70ccf9a..7e5dbfa 100644 --- a/src/testdata.rs +++ b/src/testdata.rs @@ -227,6 +227,11 @@ pub static TEST_EVENT_WITH_X_LIC_ERROR: &str = indoc!(" END:VCALENDAR "); +use chrono::{Utc,DateTime,TimeZone}; +lazy_static! { + pub static ref now_test: DateTime<Utc> = Utc.ymd(2013, 01, 01).and_hms(1, 2, 3); +} + #[cfg(test)] use std::sync::{Once, ONCE_INIT}; #[cfg(test)] |