ң

getdate

(PHP 3, PHP 4)

getdate - /.

array getdate ([int timestamp])

, timestamp , timestamp , :

  • "seconds" -

  • "minutes" -

  • "hours" -

  • "mday" - ()

  • "wday" - : 0 - Sunday 6 - Saturday

  • "mon" - ()

  • "year" - ()

  • "yday" - (); , "299"

  • "weekday" - () ; , "Friday"

  • "month" - () ; , "January"

1. getdate()
$today = getdate(); $month = $today['month']; $mday = $today['mday']; $year = $today['year']; echo "$month $mday, $year";

ң
date gettimeofday