Home
last modified time | relevance | path

Searched refs:_is_leap (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Demo/classes/
DDates.py62 def _is_leap(year): # 1 if leap year, else 0 function
68 return 365 + _is_leap(year)
74 if month == 2 and _is_leap(year): return 29
78 return _DAYS_BEFORE_MONTH[month-1] + (month > 2 and _is_leap(year))
/external/python/cpython3/Lib/
Ddatetime.py41 def _is_leap(year): function
53 if month == 2 and _is_leap(year):
60 return _DAYS_BEFORE_MONTH[month] + (month > 2 and _is_leap(year))
136 assert leapyear == _is_leap(year)
908 _is_leap(year))):
2547 _format_time, _format_offset, _is_leap, _isoweek1monday, _math,