shithub: riscv

ref: fe1eb39db7ae6904924f3ab1f6f9b34416f2eb1b
dir: /sys/src/cmd/upas/fs/extra/strtotmtst.c/

View raw version
#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("");
}