MCPcopy Index your code
hub / github.com/RustPython/RustPython / print_all_nondst_folds

Method print_all_nondst_folds

Lib/test/datetimetester.py:6619–6628  ·  view source on GitHub ↗
(cls, same_abbr=False, start_year=1)

Source from the content-addressed store, hash-verified

6617
6618 @classmethod
6619 def print_all_nondst_folds(cls, same_abbr=False, start_year=1):
6620 count = 0
6621 for zonename in cls.zonenames():
6622 tz = cls.fromname(zonename)
6623 for dt, shift, prev_abbr, abbr in tz.nondst_folds():
6624 if dt.year < start_year or same_abbr and prev_abbr != abbr:
6625 continue
6626 count += 1
6627 print("%3d) %-30s %s %10s %5s -> %s" %
6628 (count, zonename, dt, shift, prev_abbr, abbr))
6629
6630 def folds(self):
6631 for t, shift in self.transitions():

Callers

nothing calls this directly

Calls 4

zonenamesMethod · 0.80
nondst_foldsMethod · 0.80
printFunction · 0.50
fromnameMethod · 0.45

Tested by

no test coverage detected