datetime.py 255 B

123456789101112
  1. """For when pip wants to check the date or time.
  2. """
  3. import datetime
  4. def today_is_later_than(year, month, day):
  5. # type: (int, int, int) -> bool
  6. today = datetime.date.today()
  7. given = datetime.date(year, month, day)
  8. return today > given