Remove the RCSID macro
[openafs.git] / src / util / test / dtest.c
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #include <afsconfig.h>
11 #include <afs/param.h>
12
13
14 #include "ktime.h"
15
16 main(argc, argv)
17      int argc;
18      char **argv;
19 {
20     long code, temp;
21
22     if (argc <= 1) {
23         printf("dtest: usage is 'dtest <time to interpret>'\n");
24         exit(0);
25     }
26
27     code = ktime_DateToLong(argv[1], &temp);
28     if (code) {
29         printf("date parse failed with code %d.\n", code);
30     } else {
31         printf("returned %d, which, run through ctime, yields %s", temp,
32                ctime(&temp));
33     }
34     exit(0);
35 }