Skip to main content

encode_month

Function encode_month 

Source
pub fn encode_month(year: i64, month: u32) -> i64
Expand description

Encodes a year and a month into a single number the month signal holds.

§Arguments

  • i64 - The year.
  • u32 - The month, 1 through 12.

§Returns

  • i64 - The encoded month.