File: strftime-tz.mlr

package info (click to toggle)
miller 6.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 88,244 kB
  • sloc: ruby: 162; sh: 120; makefile: 87; python: 46
file content (19 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
end {

  print "---------------------------------------------------------------- TIMEZONE";
  print "TZ is", ENV["TZ"];

  print "---------------------------------------------------------------- STRFTIME";
  print strftime(0.123456, "%Y-%m-%dT%H:%M:%SZ");
  print strftime(0.0,      "%Y-%m-%d %H:%M:%S");
  print strftime(0.0,      "%Y-%m-%d %H:%M:%3S");
  print strftime(0.0,      "%Y-%m-%d %H:%M:%S %Z");
  print strftime(0.0,      "%Y-%m-%d %H:%M:%S %z");
  print strftime(0.123456, "%Y-%m-%d %H:%M:%S %Z");
  print strftime(0.123456, "%Y-%m-%d %H:%M:%S %z");
  print strftime(0.0,      "%Y-%m-%d %H:%M:%S %Z");
  print strftime(0.0,      "%Y-%m-%d %H:%M:%S %z");
  print strftime(0.123456, "%s %N");
  print strftime(0.123456, "%S %O");

}