Dates and Times

PHP

References

checkdate(month, day, year)
Returns true if the month, day, and year are valid
1 <= year <= 32767
1 <= month <= 12

date(format[, timestamp])
Formats a date-time for timestamp or now

getdate([timestamp])
Returns associative array for timestamp or now

gettimeofday()
Returns associative array for the current time

gmdate(format[, timestamp])
Same as date() except timestamp based on GMT

gmmktime(hour, minute, second, month, day, year)
Same as mktime except based on GMT

gmstrftime(format[, timestamp])
Same as strftime exctpt timestamp based on GMT

localtime([timestamp[, associative])
Returns array of values

microtime()
Returns microseconds seconds

mktime(hour, minute, second, month, day, year[, is_dst])
Returns timestamp. Missing arguments use those from now

strftime(format[, timestamp])
Format a local time/date according to locale settings

strtotime(date[, timestamp])
Parse about any English textual datetime description into a Unix timestamp

time()
Returns the current timestamp

$_SERVER['REQUEST_TIME']; Return the timestamp of page request


Send mail to the Webmaster

logo This site best viewed with a browser
Warning: This is a Debian centric site and MAY contain peanuts.
Many thanks to Debra Lynn and Ian Murdock for making Debian possible
First created Jul 30 2011 ~ Last revised September 28, 2011

Valid XHTML 1.0 Strict Valid CSS!