pub fn parse_month(s: &str) -> Option<YearMonth>
Expand description
Parse a proleptic-Gregorian date consisting of a year and a month, with no time-zone or date information
This follows the rules for parsing a month string per WHATWG HTML Standard § 2.3.5.1 Months.
§Examples
use whatwg_datetime::{parse_month, YearMonth};
assert_eq!(parse_month("2011-11"), YearMonth::new_opt(2011, 11));