Concept Framework 1.0 documentation Contents | Index

standard.C.time.localtime

Name Version Deprecated
localtime version 1.0 no

Prototype:
array localtime(number timer)

Parameters:
timer      [in] time

Description:
Convert a time value and correct for the local time zone.
Return an array containing new timer info, adjusted for the local time zone.

The following keys are available in the returned array:
"tm_hour", "tm_isdst", "tm_mday", "tm_min", "tm_mon", "tm_sec", "tm_wday", "tm_yday", "tm_year"

Example:
import standard.C.time


class Main {
function Main() {
echo localtime(time());
}
}


Results
Local time and date are : Sat Mar 11 00:16:26 2006

Returns:
Return an array containing new timer info, adjusted for the local time zone.

Documented by Simona Gabriela Plesuvu, generation time: Thu Oct 15 20:02:03 2009 GMT(c)2009 RadGs Software