getdatePodręcznik PHPPoprzedniNastępnygetdate (PHP 3, PHP 4 >= 4.0.0)getdate -- Get date/time informationDescriptionarray getdate ([int
timestamp])
Returns an associative array containing the date information of
the timestamp, or the current local time if
no timestamp is given, as the following array
elements:
"seconds" - seconds
"minutes" - minutes
"hours" - hours
"mday" - day of the month
"wday" - day of the week, numeric : from 0 as Sunday up to 6 as Saturday
"mon" - month, numeric
"year" - year, numeric
"yday" - day of the year, numeric; i.e. "299"
"weekday" - day of the week, textual, full; i.e. "Friday"
"month" - month, textual, full; i.e. "January"
Przykład 1.
getdate() example
$today = getdate();
$month = $today['month'];
$mday = $today['mday'];
$year = $today['year'];
echo "$month $mday, $year";
PoprzedniSpis treściNastępnydatePoczątek rozdziaługettimeofday
Wyszukiwarka
Podobne podstrony:
function getdatefunction getdatefunction msession getdatafunction fdf next field namefunction ccvs voidfunction mysql errorfunction mcal event set endfunction mcrypt cbcFunctional Origins of Religious Concepts Ontological and Strategic Selection in Evolved Mindsfunction domnode get contentwięcej podobnych podstron