Last active
August 29, 2015 14:14
-
-
Save nfarring/a6ed4696353c87ae712d to your computer and use it in GitHub Desktop.
Computes an ISO 8601-compatible datestamp for use with naming files.
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
from time import strftime as _strftime | |
def iso8601(): | |
"""Returns an ISO 8601-compatible datestamp for use with naming files.""" | |
return _strftime('%Y%m%dT%H%M%S') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment