Function utc_datetime::days_of_the_month[][src]

pub fn days_of_the_month(year: u16, month: u8) -> u8
Expand description

Returns the number of days in this month

Example

use utc_datetime::days_of_the_month;
assert_eq!(days_of_the_month(2020,2),29);
assert_eq!(days_of_the_month(2020,3),31)