The Associative Array Returned by getdate() : getdate « Date « PHP






The Associative Array Returned by getdate()

 
Key         Description                                                  Example
 
seconds     Seconds past the minute (059)                               28
 
minutes     Minutes past the hour (059)                                 7
 
hours       Hours of the day (023)                                      12
 
mday        Day of the month (131)                                      20
 
wday        Day of the week (06)                                        4
 
mon         Month of the year (112)                                     1
 
year        Year (four digits)                                           2004
 
Yday        Day of year (0365)                                          19
 
weekday     Day of the week (name)                                       Thursday
 
month       Month of the year (name)                                     January
 
0           Timestamp                                                    948370048
  
  








Related examples in the same category

1.Acquiring Date Information with getdate()
2.Return array from getdate( )
3.To obtain a number corresponding to the day of the week, use getdate() instead:
4.getdate() with a specific timestamp
5.Finding the month, day, and year