1 #include "headers.h"
2
3 void
threadmain(int argc,char ** argv)4 threadmain(int argc, char **argv)
5 {
6 ulong now, now2;
7 vlong nttime;
8 if (argc > 1) {
9 nttime = strtoull(argv[1], 0, 0);
10 now2 = smbtime2plan9time(nttime);
11 print("%ld %s", now2, ctime(now2));
12 }
13 else {
14 now = 1032615845;
15 nttime = smbplan9time2time(now);
16 print("0x%.llux\n", nttime);
17 now2 = smbtime2plan9time(nttime);
18 print("now %ld %s", now, ctime(now));
19 print("now2 %ld %s", now2, ctime(now2));
20 }
21 }
22
23
24