1 --- _SB/Libc/stdtime/FreeBSD/ctime.3 2004-11-25 11:38:44.000000000 -0800
2 +++ _SB/Libc/stdtime/FreeBSD/ctime.3.edit 2006-06-28 16:55:53.000000000 -0700
5 .Vt extern char *tzname[2] ;
7 +.Fn asctime "const struct tm *timeptr"
9 +.Fn asctime_r "const struct tm *restrict timeptr" "char *restrict buf"
11 .Fn ctime "const time_t *clock"
13 +.Fn ctime_r "const time_t *clock" "char *buf"
15 .Fn difftime "time_t time1" "time_t time0"
17 -.Fn asctime "const struct tm *tm"
19 +.Fn gmtime "const time_t *clock"
21 +.Fn gmtime_r "const time_t *clock" "struct tm *result"
23 .Fn localtime "const time_t *clock"
25 -.Fn gmtime "const time_t *clock"
26 +.Fn localtime_r "const time_t *clock" "struct tm *result"
28 -.Fn mktime "struct tm *tm"
29 +.Fn mktime "struct tm *timeptr"
31 -.Fn timegm "struct tm *tm"
33 -.Fn ctime_r "const time_t *clock" "char *buf"
35 -.Fn localtime_r "const time_t *clock" "struct tm *result"
37 -.Fn gmtime_r "const time_t *clock" "struct tm *result"
39 -.Fn asctime_r "const struct tm *tm" "char *buf"
40 +.Fn timegm "struct tm *timeptr"
48 all take as an argument a time value representing the time in seconds since
52 converts the time value pointed at by
54 -and returns a pointer to a
56 +It returns a pointer to a
58 -(described below) which contains
59 +(described below), which contains
60 the broken-out time information for the value after adjusting for the current
61 time zone (and any other factors such as Daylight Saving Time).
62 Time zone adjustments are performed as specified by the
67 -to initialize time conversion information if
68 +to initialize time conversion information, if
70 has not already been called by the process.
76 -string that's the time zone abbreviation to be
77 +string containing the time zone abbreviation to be
84 -similarly converts the time value, but without any time zone adjustment,
85 -and returns a pointer to a tm structure (described below).
86 +also converts the time value, but makes no time zone adjustment.
87 +It returns a pointer to a tm structure (described below).
92 -adjusts the time value for the current time zone in the same manner as
94 -and returns a pointer to a 26-character string of the form:
95 +adjusts the time value for the current time zone, in the same manner as
97 +It returns a pointer to a 26-character string of the form:
98 .Bd -literal -offset indent
99 Thu Nov 24 18:22:48 1986\en\e0
102 -All the fields have constant width.
103 +All of the fields have constant width.
108 provides the same functionality as
110 -except the caller must provide the output buffer
112 +except that the caller must provide the output buffer
114 -to store the result, which must be at least 26 characters long.
115 +(which must be at least 26 characters long) to store the result.
119 @@ -156,17 +156,17 @@
120 provide the same functionality as
125 respectively, except the caller must provide the output buffer
131 -converts the broken down time in the structure
132 +converts the broken-out time in the structure
139 shown in the example above.
141 @@ -174,17 +174,19 @@
144 provides the same functionality as
146 -except the caller provide the output buffer
148 +except that the caller provides the output buffer
150 -to store the result, which must be at least 26 characters long.
151 +(which must be at least 26 characters long) to store the result.
157 -convert the broken-down time in the structure
158 -pointed to by tm into a time value with the same encoding as that of the
159 +convert the broken-out time
160 +(in the structure pointed to by
162 +into a time value with the same encoding as that of the
163 values returned by the
165 function (that is, seconds from the Epoch,
166 @@ -197,17 +199,17 @@
171 -interprets the input structure as representing Universal Coordinated Time
172 +function interprets the input structure
173 +as representing Universal Coordinated Time
176 The original values of the
180 -components of the structure are ignored, and the original values of the
181 -other components are not restricted to their normal ranges, and will be
182 -normalized if needed.
183 +components of the structure are ignored. The original values of the
184 +other components are not restricted to their normal ranges and will be
185 +normalized, if need be.
187 October 40 is changed into November 9,
192 to presume initially that summer time (for example, Daylight Saving Time)
193 -is or is not in effect for the specified time, respectively.
194 +is or is not (respectively) in effect for the specified time.
200 expressed in seconds.
202 -External declarations as well as the tm structure definition are in the
203 +External declarations, as well as the tm structure definition,
204 +are contained in the
207 The tm structure includes at least the following fields:
208 @@ -286,14 +289,14 @@
212 -is non-zero if summer time is in effect.
213 +is non-zero if summer (i.e., Daylight Saving) time is in effect.
217 is the offset (in seconds) of the time represented from
220 -values indicating east of the Prime Meridian.
221 +values indicating locations east of the Prime Meridian.