pub unsafe fn timestamp_from_micros(micros: i64) -> Option<Timestamp>Expand description
Decomposes a TIMESTAMP (microseconds since the epoch) into date and time.
Returns None for the infinity / -infinity sentinels (see
is_finite_timestamp) and for the finite values below
day -106_751_991 (that many times MICROS_PER_DAY; the first ~4 hours of the i64 range,
including i64::MIN), whose day overflows when DuckDB multiplies it back
into microseconds. DuckDB throws on all of them, which would abort the
process, so they are checked here first.
ยงSafety
See date_from_days.