MCPcopy
hub / github.com/django/django / get_year_format

Method get_year_format

django/views/generic/dates.py:27–32  ·  view source on GitHub ↗

Get a year format string in strptime syntax to be used to parse the year from url variables.

(self)

Source from the content-addressed store, hash-verified

25 year = None
26
27 def get_year_format(self):
28 """
29 Get a year format string in strptime syntax to be used to parse the
30 year from url variables.
31 """
32 return self.year_format
33
34 def get_year(self):
35 """Return the year for which this view should display data."""

Callers 5

get_dated_itemsMethod · 0.80
get_dated_itemsMethod · 0.80
get_dated_itemsMethod · 0.80
get_dated_itemsMethod · 0.80
get_objectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected