Odoo18-Base/venv/lib/python3.12/site-packages/pip/_internal/utils/datetime.py
hoangvv 0151767149
All checks were successful
Setup Docker Action / setup_docker (3.12.7) (push) Has been skipped
Setup Native Action / test (push) Successful in 0s
Setup Native Action / setup_native (3.12.7) (push) Has been skipped
add venv to project
2025-01-15 08:43:08 +07:00

12 lines
242 B
Python

"""For when pip wants to check the date or time.
"""
import datetime
def today_is_later_than(year: int, month: int, day: int) -> bool:
today = datetime.date.today()
given = datetime.date(year, month, day)
return today > given