get_timestamp_from_ymd

Function get_timestamp_from_ymd 

Source
pub fn get_timestamp_from_ymd<T: IsLeap>(
    year: i64,
    month: u8,
    day: u8,
) -> Result<i64, Error>
Expand description

Calculates the timestamp from the given year, month, and day.

§Arguments

  • year - The year.
  • month - The month.
  • day - The day.

§Returns

The calculated timestamp.

§Errors

Returns an error if there was an issue calculating the timestamp.