reV.losses.utils.full_month_name_from_abbr
- full_month_name_from_abbr(month_name)[source]
Convert a month abbreviation to a full month name.
- Parameters:
month_name (str) –
Abbreviated month name. Must be one of:
“Jan”
“Feb”
“Mar”
“Apr”
“May”
“Jun”
“Jul”
“Aug”
“Sep”
“Oct”
“Nov”
“Dec”
If the input does not match one of these, this function returns
None
.- Returns:
str
|None
– Unabbreviated month name, orNone
if input abbreviation is not understood.
Examples
>>> full_month_name_from_abbr("Jun") "June" >>> full_month_name_from_abbr("June") is None True >>> full_month_name_from_abbr('Abcdef') is None True