Skip to main content

timestamp_ns_to_utc_date

Function timestamp_ns_to_utc_date 

Source
pub(crate) fn timestamp_ns_to_utc_date(timestamp_unix_ns: i64) -> NaiveDate
Expand description

Converts a Unix nanosecond timestamp to its UTC calendar date.

§Arguments

  • timestamp_unix_ns - Time in Unix nanoseconds.

§Examples

timestamp_ns_to_utc_date(1_754_395_200_000_000_000) == 2025-08-05