get_ymd_hms_from_timestamp

Function get_ymd_hms_from_timestamp 

Source
pub fn get_ymd_hms_from_timestamp<T: IsLeap>(
    timestamp: i64,
) -> (i64, u8, u8, u8, u8, u8)
Expand description

Converts a timestamp to the year, month, day, hour, minute, and second components.

§Arguments

  • timestamp - The timestamp to convert

§Generic Parameters

  • T - A type that implements the IsLeap trait, used to determine if a year is a leap year

§Returns

A tuple containing the year, month, day, hour, minute, and second components of the timestamp.