date_trunc_coarse

Function date_trunc_coarse 

Source
fn date_trunc_coarse(
    granularity: DateTruncGranularity,
    value: i64,
    tz: Option<Tz>,
) -> Result<i64>
Expand description

Truncates the single value, expressed in nanoseconds since the epoch, for granularities greater than 1 second, in taking into account that some granularities are not uniform durations of time (e.g. months are not always the same lengths, leap seconds, etc)