standard.C.time.asctime

asctime is available since version 1.0.

Prototype:

string asctime(number timer)

Parameters

timer
[in] time

Description:

The asctime function converts a time stored as seconds elapsed since midnight (00:00:00), January 1, 1970, coordinated universal time (UTC) to a character string.

Return value:

A string containing the date and time.

Example
import standard.C.time

class Main {
     function Main() {
          echo "Current date and time(UTC): "+asctime(time());
     }
}
 

Results 
Current date and time(UTC): Fri Mar 10 23:56:14 2006