HighNeed_projekt_inz/highneed/venv/lib/python3.6/site-packages/pip/_internal/utils/datetime.py

13 lines
267 B
Python
Raw Normal View History

2021-03-25 13:15:48 +01: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