MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / _day_number

Function _day_number

src/pendulum/_helpers.py:309–320  ·  view source on GitHub ↗
(year: int, month: int, day: int)

Source from the content-addressed store, hash-verified

307
308
309def _day_number(year: int, month: int, day: int) -> int:
310 month = (month + 9) % 12
311 year = year - month // 10
312
313 return (
314 365 * year
315 + year // 4
316 - year // 100
317 + year // 400
318 + (month * 306 + 5) // 10
319 + (day - 1)
320 )
321
322
323def _get_tzinfo_name(tzinfo: datetime.tzinfo | None) -> str | None:

Callers 1

precise_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…