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

Method _ymd2ord

Lib/zoneinfo/_zoneinfo.py:580–586  ·  view source on GitHub ↗
(cls, year, month, day)

Source from the content-addressed store, hash-verified

578
579 @classmethod
580 def _ymd2ord(cls, year, month, day):
581 return (
582 _post_epoch_days_before_year(year)
583 + cls._DAYS_BEFORE_MONTH[month]
584 + (month > 2 and calendar.isleap(year))
585 + day
586 )
587
588 # TODO: These are not actually epoch dates as they are expressed in local time
589 def year_to_epoch(self, year):

Callers 1

year_to_epochMethod · 0.95

Calls 1

Tested by

no test coverage detected