idate

(PHP 5)

idate --  Format a local time/date as integer

Description

int idate ( string format [, int timestamp])

Returns a string formatted according to the given format string using the given integer timestamp or the current local time if no timestamp is given. In otherwords, timestamp is optional and defaults to the value of time().

Table 1. The following characters are recognized in the format parameter string

format characterDescription 
BSwatch Beat/Internet Time 
dDay of the month 
hHour (12 hour format) 
HHour (24 hour format) 
iMinutes 
Ireturns 1 if DST is activated, 0 otherwise 
Lreturns 1 for leap year, 0 otherwise 
mMonth number 
sSeconds 
tDays in current month 
USeconds since the Unix Epoch - January 1 1970 00:00:00 GMT - this is the same as time() 
wDay of the week (0 on Sunday) 
WISO-8601 week number of year, weeks starting on Monday 
yYear (2 digits) 
YYear (4 digits) 
zDay of the year 
ZTimezone offset in seconds 

See also date() and time().