ref: 556618eb07d1ac6e2c629a60acd53c45d53261be
dir: /sys/src/cmd/upas/fs/extra/strtotmtst.c/
#include "strtotm.c" void main(int argc, char **argv) { Tm tm; ARGBEGIN{ }ARGEND tmfmtinstall(); for(; *argv; argv++) if(strtotm(*argv, &tm) >= 0) print("%τ\n", tmfmt(&tm, nil)); else print("bad\n"); exits(""); }