2 * Copyright 2000, International Business Machines Corporation and others.
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
11 * Copyright (c) 1985 Regents of the University of California.
12 * All rights reserved. The Berkeley software License Agreement
13 * specifies the terms and conditions for redistribution.
16 #include <afsconfig.h>
17 #include <sys/param.h>
26 static char *usage
= "usage: %s [-n] [-u] [yymmddhhmm[.ss]]\n";
31 char *progname
= argv
[0];
36 fprintf(stderr
, usage
, progname
);
40 if (ktime_DateToLong(argv
[1], &time
)) {
41 fprintf(stderr
, usage
, progname
);
44 ka_timestr(time
, bob
, KA_TIMESTR_LEN
);
45 printf("time is %s\n", bob
);