123456789101112131415161718192021222324252627282930 |
- /*
- * This file is part of the UCB release of Plan 9. It is subject to the license
- * terms in the LICENSE file found in the top-level directory of this
- * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
- * part of the UCB release of Plan 9, including this file, may be copied,
- * modified, propagated, or distributed except according to the terms contained
- * in the LICENSE file.
- */
- #include "headers.h"
- void
- threadmain(int argc, char **argv)
- {
- uint32_t now, now2;
- int64_t nttime;
- if (argc > 1) {
- nttime = strtoull(argv[1], 0, 0);
- now2 = smbtime2plan9time(nttime);
- print("%ld %s", now2, ctime(now2));
- }
- else {
- now = 1032615845;
- nttime = smbplan9time2time(now);
- print("0x%.llux\n", nttime);
- now2 = smbtime2plan9time(nttime);
- print("now %ld %s", now, ctime(now));
- print("now2 %ld %s", now2, ctime(now2));
- }
- }
|