OpenHome/venv/Lib/site-packages/pip/_internal/utils/datetime.py

13 lines
255 B
Python
Raw Permalink Normal View History

2021-07-21 21:33:05 +02:00
"""For when pip wants to check the date or time.
"""
import datetime
def today_is_later_than(year, month, day):
# type: (int, int, int) -> bool
today = datetime.date.today()
given = datetime.date(year, month, day)
return today > given