Last active
February 16, 2017 07:31
-
-
Save zhangchunlin/f5e7997fdb6133fafa02fddd273e4b8b to your computer and use it in GitHub Desktop.
time and strftime
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 | |
| tstr = time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(time.time())) | |
| print tstr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment