Skip to main content

time_from_micros

Function time_from_micros 

Source
pub unsafe fn time_from_micros(micros: i64) -> Option<Time>
Expand description

Decomposes a TIME (microseconds since midnight) into a wall-clock time.

Returns None outside DuckDB’s TIME range, 0 to MICROS_PER_DAY (00:00:00–24:00:00). duckdb_from_time does not check the range: a release build of DuckDB decomposes such a value into out-of-range fields (-1 gives micros == -1), and a build with assertions enabled aborts the process, so it is checked here first.

§Safety

See date_from_days.