Download .venv/Lib/site-packages/pip/_internal/utils/datetime.py from DrDavis/PythonProject1: direct link, hf CLI and curl.
- Browser
- Download file 242 Bytes
-
https://huggingface.co/DrDavis/PythonProject1/resolve/main/.venv/Lib/site-packages/pip/_internal/utils/datetime.py
- Command line
-
hf download hf://DrDavis/PythonProject1/.venv/Lib/site-packages/pip/_internal/utils/datetime.py
-
curl -L -o datetime.py https://huggingface.co/DrDavis/PythonProject1/resolve/main/.venv/Lib/site-packages/pip/_internal/utils/datetime.py
242 Bytes
| """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 | |