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
Allow the user to quit the program with the window close gadgets.
[AROS.git]
/
test
/
mktime.c
blob
4f539618f919d95293fa013441bd8605de4acaf1
1
#include <stdio.h>
2
#include <time.h>
3
4
int
main
(
void
)
5
{
6
time_t
t
;
7
struct
tm
*
tm
;
8
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
);
15
16
return
0
;
17
}
18