retro-gap/venv/lib/python3.8/site-packages/pip/_internal/utils/datetime.py
Michal Maciaszek a2b50f54aa dev-0
2020-12-08 12:01:14 +01:00

15 lines
295 B
Python

"""For when pip wants to check the date or time.
"""
from __future__ import absolute_import
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