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

Function _post_epoch_days_before_year

Lib/zoneinfo/_zoneinfo.py:510–513  ·  view source on GitHub ↗

Get the number of days between 1970-01-01 and YEAR-01-01

(year)

Source from the content-addressed store, hash-verified

508
509
510def _post_epoch_days_before_year(year):
511 """Get the number of days between 1970-01-01 and YEAR-01-01"""
512 y = year - 1
513 return y * 365 + y // 4 - y // 100 + y // 400 - EPOCHORDINAL
514
515
516class _DayOffset:

Callers 2

year_to_epochMethod · 0.85
_ymd2ordMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected