plan9fox/sys/src/cmd/upas/fs/extra/strtotmtst.c
2017-03-12 17:15:03 +01:00

18 lines
210 B
C

#include "strtotm.c"
void
main(int argc, char **argv)
{
Tm tm;
ARGBEGIN{
}ARGEND
for(; *argv; argv++)
if(strtotm(*argv, &tm) >= 0)
print("%s", asctime(&tm));
else
print("bad\n");
exits("");
}