MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / isleap

Function isleap

tools/python-3.11.9-amd64/Lib/calendar.py:102–104  ·  view source on GitHub ↗

Return True for leap years, False for non-leap years.

(year)

Source from the content-addressed store, hash-verified

100
101
102def isleap(year):
103 """Return True for leap years, False for non-leap years."""
104 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
105
106
107def leapdays(y1, y2):

Callers 2

monthrangeFunction · 0.85
_monthlenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected