standard.C.time.localtime

localtime is available since version 1.0.

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"

Return value:

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

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