diff options
author | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-26 21:48:33 +0100 |
---|---|---|
committer | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-26 21:48:33 +0100 |
commit | 6fa125473b7d9e6931353a48c67a106f9becac9a (patch) | |
tree | 6012a17348b17a57b21ce8f9e2af9d1433a73bcd /src/datetime.rs | |
parent | 5394f1c753b2752fc9d6409088f0658c797286d6 (diff) | |
download | rust_rrule-6fa125473b7d9e6931353a48c67a106f9becac9a.zip |
docs and examples
Diffstat (limited to 'src/datetime.rs')
-rw-r--r-- | src/datetime.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/datetime.rs b/src/datetime.rs index 46b1643..69b25ca 100644 --- a/src/datetime.rs +++ b/src/datetime.rs @@ -12,6 +12,7 @@ pub type DTime = DateTime<Tz>; pub fn from_ordinal(ordinal: isize, tz: &Tz) -> DTime { let timestamp = ordinal * 24 * 60 * 60; + let s = tz.timestamp(timestamp as i64, 0); tz.timestamp(timestamp as i64, 0) } |