★ wanayoo — archive 1999 http://www.php.net/manual/hu/function.localtime.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Dátum/Idő
Quick Reference
English version of this pageGerman version of this pageJapanese version of this pageItalian version of this page
Dátum/Idő
* checkdate
* date
* getdate
* gettimeofday
* gmdate
* gmmktime
* gmstrftime
* localtime
* microtime
* mktime
* strftime
* time
* strtotime
Manual: localtime
View the source code for this pageSearch the site



Previous page
 gmstrftime
 Updated
Sat, 12 Aug 2000
microtime 
Next page


localtime

(PHP4 >= 4.0RC2)

localtime -- Get the local time

Description

array localtime ([int timestamp [, bool is_associative]])

The localtime() function returns an array identical to that of the structure returned by the C function call. The first argument to localtime() is the timestamp, if this is not given the current time is used. The second argument to the localtime() is the is_associative, if this is set to 0 or not supplied than the array is returned as a regular, numerically indexed array. If the argument is set to 1 then localtime() is an associative array containing all the different elements of the structure returned by the C function call to localtime. The names of the different keys of the associative array are as follows:

  • "tm_sec" - seconds

  • "tm_min" - minutes

  • "tm_hour" - hour

  • "tm_mday" - day of the month

  • "tm_mon" - month of the year

  • "tm_year" - Year, not y2k compliant

  • "tm_wday" - Day of the week

  • "tm_yday" - Day of the year

  • "tm_isdst" - Is daylight savings time in effect


 About Notes


Previous page
 gmstrftime
 Updated
Sat, 12 Aug 2000
microtime 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.