blob: ab3ffb743f0ac4e3c0d17d42e12ab234b48b24d5 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 int time()
MG Mud User88f12472016-06-24 23:31:02 +02003
Zesstra715ec202025-07-09 22:18:31 +02004DESCRIPTION
5 Return number of seconds ellapsed since 1. Jan 1970, 0.0:0 GMT
MG Mud User88f12472016-06-24 23:31:02 +02006
Zesstra715ec202025-07-09 22:18:31 +02007 The time is based on the time provided by the host system, however,
8 the driver makes sure that the result of time() is monotonically
9 increasing (ie. changes only to bigger numbers).
MG Mud User88f12472016-06-24 23:31:02 +020010
Zesstra715ec202025-07-09 22:18:31 +020011 The result of time() does not change during the course of a command
12 execution.
MG Mud User88f12472016-06-24 23:31:02 +020013
Zesstra715ec202025-07-09 22:18:31 +020014EXAMPLES
15 write(ctime(time())+"\n");
MG Mud User88f12472016-06-24 23:31:02 +020016
Zesstra715ec202025-07-09 22:18:31 +020017 Print out the current date and time.
MG Mud User88f12472016-06-24 23:31:02 +020018
Zesstra715ec202025-07-09 22:18:31 +020019SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020020 ctime(E), gmtime(E), localtime(E), utime(E)