git://git.openafs.org
/
openafs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial IBM OpenAFS 1.0 tree
[openafs.git]
/
src
/
util
/
test
/
dtest.c
1
#include "ktime.h"
2
3
main(argc, argv)
4
int argc;
5
char **argv; {
6
long code, temp;
7
8
if (argc <= 1) {
9
printf("dtest: usage is 'dtest <time to interpret>'\n");
10
exit(0);
11
}
12
13
code = ktime_DateToLong(argv[1], &temp);
14
if (code) {
15
printf("date parse failed with code %d.\n", code);
16
}
17
else {
18
printf("returned %d, which, run through ctime, yields %s", temp, ctime(&temp));
19
}
20
exit(0);
21
}