Adapted to WinCE
[AROS.git] / test / mktime.c
blob4f539618f919d95293fa013441bd8605de4acaf1
1 #include <stdio.h>
2 #include <time.h>
4 int main(void)
6 time_t t;
7 struct tm *tm;
9 t=time(NULL);
10 printf("Time before: %d\n", (int)t);
11 tm=gmtime(&t);
12 puts(asctime(tm));
13 t=mktime(tm);
14 printf("Time after: %d\n", (int)t);
16 return 0;