Created
July 4, 2014 13:42
-
-
Save samuell/7d1fb5583b900bccdfa8 to your computer and use it in GitHub Desktop.
How to output a simple formatted date / time stamp in python
This file contains hidden or 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
| import time | |
| # Will output something like: | |
| # 20140704 15:40:51 | |
| time.strftime('%Y%m%d %H:%M:%S') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment