2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
9 int main(int argc
, char **argv
) {
15 printf("time: %d\n", (int)now
);
18 printf("ctime: %s", pbuf
);
19 pbuf
= ctime_r(&now
, &buf
[0]);
20 printf("ctime_r: %s", buf
);
22 mk
= mktime(gmtime(&now
));
23 printf("gmtime: %d\n", (int)mk
);
24 mk
= mktime(gmtime_r(&now
, &tm
));
25 printf("gmtime_r: %d\n", (int)mk
);
27 mk
= mktime(localtime(&now
));
28 printf("localtime: %d\n", (int)mk
);
29 mk
= mktime(localtime_r(&now
, &tm
));
30 printf("localtime_r: %d\n", (int)mk
);
33 printf("asctime: %s", pbuf
);
34 pbuf
= asctime_r(&tm
, &buf
[0]);
35 printf("asctime_r: %s", buf
);