Function mz_repr::row::checked_timestamp_nanos
source · fn checked_timestamp_nanos(dt: NaiveDateTime) -> Option<i64>
Expand description
Returns an i64 representing a NaiveDateTime
, if
said i64 can be round-tripped back to a NaiveDateTime
.
The only exotic NDTs for which this can’t happen are those that are hundreds of years in the future or past, or those that represent a leap second. (Note that Materialize does not support leap seconds, but this module does).