(v: i64)
| 141 | /// converts a `i64` representing a `timestamp(s)` to [`NaiveDateTime`] |
| 142 | #[inline] |
| 143 | pub fn timestamp_s_to_datetime(v: i64) -> Option<NaiveDateTime> { |
| 144 | Some(DateTime::from_timestamp(v, 0)?.naive_utc()) |
| 145 | } |
| 146 | |
| 147 | /// Similar to timestamp_s_to_datetime but only compute `date` |
| 148 | #[inline] |
no outgoing calls