test/strftlng.awk
raw| 1 | # test file from Paul Eggert, [email protected] |
| 2 | # modified for portability (%c doesn't cut it) |
| 3 | |
| 4 | BEGIN { |
| 5 | BUFSIZ = 1024 |
| 6 | simpleformat = format = "%m/%d/%y %H:%M:%S\n" |
| 7 | clen = length(strftime(format, 0)) |
| 8 | for (i = 1; i < BUFSIZ / clen + 1; i++) |
| 9 | format = format simpleformat |
| 10 | printf "%s", strftime(format, 0) |
| 11 | } |