MCPcopy Index your code
hub / github.com/python/cpython / __calc_month

Method __calc_month

Lib/_strptime.py:127–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125 self.f_weekday = f_weekday
126
127 def __calc_month(self):
128 # Set self.f_month and self.a_month using the calendar module.
129 a_month = [calendar.month_abbr[i].lower() for i in range(13)]
130 f_month = [calendar.month_name[i].lower() for i in range(13)]
131 self.a_month = a_month
132 self.f_month = f_month
133
134 def __calc_am_pm(self):
135 # Set self.am_pm by using time.strftime().

Callers 1

__init__Method · 0.95

Calls 1

lowerMethod · 0.45

Tested by

no test coverage detected