Created
August 28, 2012 03:05
-
-
Save shiweifu/3494573 to your computer and use it in GitHub Desktop.
test_time
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
#include <stdio.h> | |
#include <time.h> | |
int main(int argc, const char *argv[]) | |
{ | |
/*time_t t = time(NULL);*/ | |
time_t t = 1346122873; | |
printf("%s\n", ctime(&t)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment