repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
a little more debug to help diagnose boot failure
[AROS.git]
/
test
/
clib
/
mktime.c
blob
2b601b52fc3da1969e6e0a487b8299f04bd1faeb
1
/*
2
Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3
$Id$
4
*/
5
6
#include <stdio.h>
7
#include <time.h>
8
9
int
main
(
void
)
10
{
11
time_t
t
;
12
struct
tm
*
tm
;
13
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
);
20
21
return
0
;
22
}
23