Function chrono::offset::local::tz_info::rule::days_since_unix_epoch

source ·
pub(crate) const fn days_since_unix_epoch(
    year: i32,
    month: usize,
    month_day: i64,
) -> i64
Expand description

Compute the number of days since Unix epoch (1970-01-01T00:00:00Z).

§Inputs

  • year: Year
  • month: Month in [1, 12]
  • month_day: Day of the month in [1, 31]