Created
July 12, 2017 13:19
-
-
Save fanjc320/b9aada94a6fe3f6d009ffc42d7f40955 to your computer and use it in GitHub Desktop.
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
| char bufTime[64]; | |
| time_t now = time(NULL); | |
| tm* lt = localtime(&now); | |
| strftime(bufTime, 64, "%F %T", lt); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment