miller/test/input/strpntime-tz.mlr
John Kerl d72ef826fb
Add DSL functions for integer nanoseconds since the epoch (#1326)
* DSL functions for 64-bit nano-epoch timestamps

* strfntime

* nsec2gmt; move sec/nsec pairs adjacent to one another

* update on-line help

* artifacts from `make dev`

* unit-test files
2023-06-24 17:05:15 -04:00

14 lines
662 B
Text

end {
print "---------------------------------------------------------------- TIMEZONE";
print "TZ is", ENV["TZ"];
print "---------------------------------------------------------------- STRPNTIME";
print strpntime("1970-01-01T00:00:00Z", "%Y-%m-%dT%H:%M:%SZ");
print strpntime("1970-01-01T00:00:00.345Z", "%Y-%m-%dT%H:%M:%SZ");
print strpntime("1970-01-01T00:00:00.345 UTC", "%Y-%m-%dT%H:%M:%S %Z");
print strpntime("1970-01-01T00:00:00.345 EST", "%Y-%m-%dT%H:%M:%S %Z");
print strpntime("1970-01-01T00:00:00.345 -0400", "%Y-%m-%dT%H:%M:%S %z");
print strpntime("1970-01-01T00:00:00.345 +0400", "%Y-%m-%dT%H:%M:%S %z");
}