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