end { print strpntime("1970-01-01T00:00:00Z", "%Y-%m-%dT%H:%M:%SZ"); print strpntime("1970-01-01T00:00:00Z", "%Y-%m-%dT%H:%M:%SZ"); print strpntime("1970-01-01 00:00:00 -0400", "%Y-%m-%d %H:%M:%S %z"); print strpntime("1970-01-01%00:00:00Z", "%Y-%m-%d%%%H:%M:%SZ"); print strpntime("1970-01-01T00:00:00Z", "%FT%TZ"); print strpntime("1970:363", "%Y:%j"); print strpntime("1970-01-01 10:20:30 PM", "%F %r"); print strpntime("01/02/70 14:20", "%D %R"); print strpntime("01/02/70 14:20", "%D %X"); # no such format code print fmtnum(strpntime("1971-01-01T00:00:00.123456Z", "%Y-%m-%dT%H:%M:%S.%fZ"), "%.6f"); }