miller/test/input/strfntime_local-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

17 lines
658 B
Text

end {
print "---------------------------------------------------------------- TIMEZONE";
print "TZ is", ENV["TZ"];
print "---------------------------------------------------------------- STRFNTIME_LOCAL";
print strfntime_local(0, "%Y-%m-%d %H:%M:%S");
print strfntime_local(0, "%Y-%m-%d %H:%M:%3S");
print strfntime_local(0, "%Y-%m-%d %H:%M:%S %Z");
print strfntime_local(0, "%Y-%m-%d %H:%M:%S %z");
print strfntime_local(123456, "%Y-%m-%d %H:%M:%S %Z");
print strfntime_local(123456, "%Y-%m-%d %H:%M:%S %z");
print strfntime_local(0, "%Y-%m-%d %H:%M:%S %Z");
print strfntime_local(0, "%Y-%m-%d %H:%M:%S %z");
}