Debian Codegraph @

test/checknegtime.awk

raw
1 NR == 1 {
2 # Tue Dec 15 07:00:00 GMT 1959
3 Weekday = $1
4 Month = $2
5 Day = $3
6 Time = $4
7 Timezone = $5
8 Year = $6
9 }
10
11 NR == 2 {
12 if (NF == 0) # MinGW gives an empty line
13 exit 0
14
15 # Some BSDs give us UTC in the timezone
16 if ($1 == Weekday && $2 == Month && $3 == Day &&
17 $4 == Time && $6 == Year)
18 exit 0
19
20 # Some other mismatch
21 exit 1
22 }