Tiny kprintf implementation, only decimal and hexadecimal output (unsigned).
[AROS.git] / test / mktime.c
blob2b601b52fc3da1969e6e0a487b8299f04bd1faeb
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdio.h>
7 #include <time.h>
9 int main(void)
11 time_t t;
12 struct tm *tm;
14 t=time(NULL);
15 printf("Time before: %d\n", (int)t);
16 tm=gmtime(&t);
17 puts(asctime(tm));
18 t=mktime(tm);
19 printf("Time after: %d\n", (int)t);
21 return 0;