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 <sys/param.h>
17 #include <afsconfig.h>
28 static char *usage = "usage: %s [-n] [-u] [yymmddhhmm[.ss]]\n";
33 char *progname = argv[0];
38 fprintf(stderr, usage, progname);
42 if (ktime_DateToLong(argv[1], &time)) {
43 fprintf(stderr, usage, progname);
46 ka_timestr(time, bob, KA_TIMESTR_LEN);
47 printf("time is %s\n", bob);