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 as returned
from 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, starting with 0 for January
"tm_year" - Years since 1900
"tm_wday" - Day of the week
"tm_yday" - Day of the year
"tm_isdst" - Is daylight savings time in effect
Php localtime Function syntax tag
localtime php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php localtime syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.