source: trunk/essentials/sys-apps/gawk/test/strftlng.awk

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 311 bytes
Line 
1# test file from Paul Eggert, eggert@twinsun.com
2# modified for portability (%c doesn't cut it)
3
4BEGIN {
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}
Note: See TracBrowser for help on using the repository browser.