blob: 7f10e3377fc9d037a5ebdaa764a12513b3935ce7 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 int * utime()
MG Mud User88f12472016-06-24 23:31:02 +02003
Zesstra715ec202025-07-09 22:18:31 +02004DESCRIPTION
5 Return the time since 1. Jan 1970, 00:00:00 GMT in microsecond
6 precision.
MG Mud User88f12472016-06-24 23:31:02 +02007
Zesstra715ec202025-07-09 22:18:31 +02008 Return is an array:
9 int[0]: number of seconds elapsed
10 int[1]: number of microseconds within the current second.
MG Mud User88f12472016-06-24 23:31:02 +020011
Zesstra715ec202025-07-09 22:18:31 +020012EXAMPLES
MG Mud User88f12472016-06-24 23:31:02 +020013 write(ctime(utime())+"\n");
14
Zesstra715ec202025-07-09 22:18:31 +020015 Print out the current date and time.
MG Mud User88f12472016-06-24 23:31:02 +020016
Zesstra715ec202025-07-09 22:18:31 +020017HISTORY
18 Introduced in LDMud 3.2.9.
MG Mud User88f12472016-06-24 23:31:02 +020019
Zesstra715ec202025-07-09 22:18:31 +020020SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020021 ctime(E), gmtime(E), localtime(E), time(E)