3 ctime, localtime, gmtime, asctime, tm2sec, timezone \- convert date and time
11 char* ctime(long clock)
14 Tm* localtime(long clock)
17 Tm* gmtime(long clock)
33 and returns a pointer to a
35 in the following form.
36 All the fields have constant width.
39 Wed Aug 5 01:07:47 EST 1973\en\e0
44 return pointers to structures containing
47 corrects for the time zone and possible daylight savings time;
49 converts directly to GMT.
51 converts a broken-down time to
57 .ta 6n +\w'char 'u +\w'zone[4]; 'u
60 int sec; /* seconds (range 0..59) */
61 int min; /* minutes (0..59) */
62 int hour; /* hours (0..23) */
63 int mday; /* day of the month (1..31) */
64 int mon; /* month of the year (0..11) */
65 int year; /* year A.D. \- 1900 */
66 int wday; /* day of week (0..6, Sunday = 0) */
67 int yday; /* day of year (0..365) */
68 char zone[4]; /* time zone name */
69 int tzoff; /* time zone delta from GMT */
74 converts a broken-down time to
75 seconds since the start of the epoch.
78 and assumes the local time zone
84 .B /usr/local/plan9/src/lib9/date.c
86 .B /usr/local/plan9/src/lib9/ctime.c
91 The return values point to static data
92 whose content is overwritten by each call.
94 Daylight Savings Time is ``normal'' in the Southern hemisphere.
96 These routines are not equipped to handle non-\c
98 text, and are provincial anyway.