class YearMixin [source]
A mixin that can be used to retrieve and provide parsing information for a year component of a date.
Methods and Attributes
year_format
The strftime() format to use when parsing the year. By default, this is '%Y'.
year
Optional The value for the year, as a string. By default, set to None, which means the year will be determined using other means.
get_year_format() [source]
Returns the strftime() format to use when parsing the year. Returns year_format