G Hour from 0 to 23 (no leading zeroes)
i Minutes
j Day of the month with no leading zeroes
l Day of the week
L 1 if leap year, 0 otherwise
m Month number from 01 to 12
M Abbreviated month name (Jan, Feb,.. .)
n Month number from 1 to 12 (no leading zeroes)
s Seconds 00 to 59
S Ordinal suffix for day of the month (1st, 2nd, 3rd)
t Number of days in the month
U Seconds since the epoch
y Year as two digits
Y Year as four digits
z Day of the year from 0 to 365
Z Timezone offset in seconds (-43,200 to 43,200)
Table 11.2. Elements ingetdateArray
Element Description
hours Hour in 24-hour format
mday Day of the month
minutes Minutes for the hour
mon Month as a number
month Full name of the month
seconds Seconds for the minute
wday Day of the week as a number from 0 to 6
weekday Name of the day of the week
yday Day of the year as a number
year Year
0 Timestamp
Table 11.3. Elements of the Array Returned bygettimeofday
Element Meaning
sec Seconds
usec Microseconds
minuteswest Minutes West of Greenwich
dsttime Type of DST correction
string gmdate(string format, integer timestamp)