junobuild_shared::day

Function day_of_the_year

Source
pub fn day_of_the_year(timestamp: &u64) -> usize
Expand description

Returns the day of the year for a given timestamp.

§Arguments

  • timestamp: A reference to a u64 Unix timestamp in nanoseconds.

§Returns

The day of the year as usize, ranging from 1 to 366.