Created
September 17, 2013 15:44
-
-
Save wgm89/6596172 to your computer and use it in GitHub Desktop.
test.c
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" | |
| #include "string.h" | |
| void main(){ | |
| int * month; | |
| int no; | |
| time_t timer; | |
| char timebuf[128]; | |
| struct tm * current; | |
| time(&timer); | |
| current = localtime(&timer); | |
| /* | |
| current->tm_hour = 23; | |
| current->tm_min = 0; | |
| current->tm_sec = 0; | |
| */ | |
| //strftime(timebuf,128,"%Y-%m-%d",current); | |
| no = mktime(current); | |
| printf("%d",no); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment