Date & Time

PyCalendar

Python stdlib module — calendar. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.format()Neutral
#
Signature
format(cols, colwidth, spacing)

Prints multi-column formatting for year calendars

.formatstring()Neutral
#
Signature
formatstring(cols, colwidth, spacing)

Returns a string formatted from n strings, centered within n columns.

.isleap()Neutral
#
Signature
isleap(year)

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

.leapdays()Neutral
#
Signature
leapdays(y1, y2)

Return number of leap years in range [y1, y2).

.main()Neutral
#
Signature
main(args)

main function.

.monthrange()Neutral
#
Signature
monthrange(year, month)

Return weekday (0-6 ~ Mon-Sun) and number of days (28-31) for

.setfirstweekday()Neutral
#
Signature
setfirstweekday(firstweekday)

setfirstweekday function.

.timegm()Neutral
#
Signature
timegm(tuple)

Unrelated but handy function to calculate Unix timestamp from GMT.

.weekday()Neutral
#
Signature
weekday(year, month, day)

Return weekday (0-6 ~ Mon-Sun) for year, month (1-12), day (1-31).

.Calendar()Neutral
#
Signature
Calendar(...)

Base calendar class. This class doesn't do any formatting. It simply

Fully-Qualified Names

FQNField
calendarfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import calendar