The gettimeofday function returns an associative array containing information about the
current time. This is a direct interface to the C function of the same name. The element of
the returned array are listed in Table 11.3.
Figure 11-2. gettimeofday.
Table 11.1. dateFormat Codes
Code Description
a am or pm
A AM or PM
B Swatch Beat time
d Day of the month with leading zeroes
D Day of the week as a three-letter abbreviation
F Name of the month
h Hour from 01 to 12
H Hour from 00 to 23
g Hour from 1 to 12 (no leading zeroes)