shithub: riscv

ref: 6d429cf9e8418ec69d2516ccba370860e20afd63
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

	for(; *argv; argv++)
		if(strtotm(*argv, &tm) >= 0)
			print("%s", asctime(&tm));
		else
			print("bad\n");
	exits("");
}