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