MCPcopy Create free account
hub / github.com/apache/arrow-rs / time32s_to_time

Function time32s_to_time

arrow-array/src/temporal_conversions.rs:75–77  ·  view source on GitHub ↗
(v: i32)

Source from the content-addressed store, hash-verified

73/// converts a `i32` representing a `time32(s)` to [`NaiveDateTime`]
74#[inline]
75pub fn time32s_to_time(v: i32) -> Option<NaiveTime> {
76 NaiveTime::from_num_seconds_from_midnight_opt(v as u32, 0)
77}
78
79/// converts a `i32` representing a `time32(ms)` to [`NaiveDateTime`]
80#[inline]

Callers 1

as_timeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected