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