Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- enum
- {
- BASIC_YEAR = 1900
- };
- int main(void)
- {
- int year_old = 2000, month_old = 11, day_old = 5;
- /*scanf("%d%d%d", &year_old, &month_old, &day_old);*/
- struct tm old_time;
- old_time.tm_hour = 0;
- old_time.tm_min = 0;
- old_time.tm_sec = 0;
- old_time.tm_yday = 10;
- old_time.tm_mon = 10;
- old_time.tm_mday = 10;
- old_time.tm_isdst = -1;
- printf("%ld\n", mktime(&old_time));
- /* printf("%d %d %d\n", year_new, month_new, day_new); */
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement