Created
October 26, 2016 06:45
-
-
Save ram0973/d750c9f60bea3c83e67fe58a6f5c4b6b to your computer and use it in GitHub Desktop.
Python: get If-Modified-Since Tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
timestamp = datetime.utcnow() - timedelta(seconds=60) | |
expiration_time = timestamp.strftime('%a, %d %b %Y %H:%M:%S GMT') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment