mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-10 13:40:16 +00:00
Update datetime.py
This commit is contained in:
parent
606f586c6d
commit
06988bb196
@ -55,9 +55,7 @@ def _ymd2ord(year, month, day):
|
||||
assert 1 <= month <= 12, 'month must be in 1..12'
|
||||
dim = _days_in_month(year, month)
|
||||
assert 1 <= day <= dim, ('day must be in 1..%d' % dim)
|
||||
return (_days_before_year(year) +
|
||||
_days_before_month(year, month) +
|
||||
day)
|
||||
return (_days_before_year(year) + _days_before_month(year, month) + day)
|
||||
|
||||
_DI400Y = _days_before_year(401) # number of days in 400 years
|
||||
_DI100Y = _days_before_year(101) # " " " " 100 "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user