blob: c06d72a7221adf6f7e25d8789eaba47802540ed6 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 string ctime(int clock)
3 string ctime(int *uclock)
MG Mud User88f12472016-06-24 23:31:02 +02004
Zesstra715ec202025-07-09 22:18:31 +02005DESCRIPTION
6 Interpret the argument clock as number of seconds since Jan,
7 1st, 1970, 0.00 and convert it to a nice date and time string.
8 If clock is not specified, time() is used as default.
MG Mud User88f12472016-06-24 23:31:02 +02009
Zesstra715ec202025-07-09 22:18:31 +020010 The second form is like the first, except that it takes as argument
11 an array of ints as it is returned from utime(): int[0] is the number
12 of seconds like before, int[1] is the number of microseconds within
13 that second.
MG Mud User88f12472016-06-24 23:31:02 +020014
Zesstra715ec202025-07-09 22:18:31 +020015EXAMPLES
Zesstrad59c3892019-11-28 20:53:39 +010016 write(ctime()+"\n");
MG Mud User88f12472016-06-24 23:31:02 +020017
Zesstra715ec202025-07-09 22:18:31 +020018 This will print out something like "Fri Jul 17 19:13:33 1992".
Zesstrad59c3892019-11-28 20:53:39 +010019
Zesstra715ec202025-07-09 22:18:31 +020020HISTORY
21 LDMud 3.2.9 introduced the second form.
MG Mud User88f12472016-06-24 23:31:02 +020022
Zesstra715ec202025-07-09 22:18:31 +020023SEE ALSO
Zesstrad59c3892019-11-28 20:53:39 +010024 gmtime(E), localtime(E), mktime(E), strftime(E), time(E), utime(E)