IsXsGMonthDay🔗
Check that
text is a valid xs:gMonthDay.
We check that the text matches the pattern of xs:gMonthDay,
and that the day exists in the month. February 29th is valid, as there is no
year to tell otherwise.
Code
return matches_xs_g_month_day(text) and _is_day_of_month_valid(
True, int(text[2:4]), int(text[5:7])
)