Merge from vendor branch GCC:
[dragonfly.git] / contrib / awk / test / strftime.awk
1 # strftime.awk ; test the strftime code
2 #
3 # input is the output of `date', see Makefile.in
4 #
5 # The mucking about with $0 and $N is to avoid problems
6 # on cygwin, where the timezone field is empty and there
7 # are two consecutive blanks.
8
9 {
10         $3 = sprintf("%02d", $3 + 0)
11         print > "strftime.ok"
12         $0 = strftime()
13         $NF = $NF
14         print > OUTPUT
15 }