Concept Framework 2.2 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: Sun Jan 27 18:15:15 2013 GMT(c)2013 Devronium Applications