diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-07-07 15:38:39 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2003-07-07 15:38:39 +0000 |
commit | 7850eb0795758dbfe335acfa57c5a583a748694b (patch) | |
tree | c6a9f7976dcdafc0fc33487d9ad0a4fd69d6cd63 /lib/libc/time | |
parent | 2ef57e1e87dc4cbebaea6ff8273ee04deb9f3727 (diff) |
- remove some unnecessary quoting
- simplify a display
- escape en-dashes
- .Li Dq -> .Dq Li
Diffstat (limited to 'lib/libc/time')
-rw-r--r-- | lib/libc/time/ctime.3 | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/lib/libc/time/ctime.3 b/lib/libc/time/ctime.3 index 8be555a158f..5fe445196ab 100644 --- a/lib/libc/time/ctime.3 +++ b/lib/libc/time/ctime.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ctime.3,v 1.27 2003/05/29 19:13:33 deraadt Exp $ +.\" $OpenBSD: ctime.3,v 1.28 2003/07/07 15:38:38 jmc Exp $ .\" .\" .Dd February 16, 1999 @@ -61,9 +61,8 @@ representing the time in seconds since and returns a pointer to a 26-character string of the form -.Bd -literal -offset indent -Thu Nov 24 18:22:48 1986\en\0 -.Ed +.Pp +.Dl Thu Nov 24 18:22:48 1986\en .Pp All the fields have constant width. .Pp @@ -99,7 +98,7 @@ After filling in the structure, .Fn localtime sets the -.Fa tm_isdst Ns No 'th +.Fa tm_isdst Ns 'th element of .Fa tzname to a pointer to an @@ -206,9 +205,7 @@ function. .Pp .Fn difftime returns the difference between two calendar times, -.Pf ( Fa time1 -- -.Fa time0 ) , +.Pf ( Fa time1 No \- Fa time0 ) , expressed in seconds. .Pp Declarations of all the functions and externals, and the @@ -220,17 +217,17 @@ The structure (of type) .Li struct tm includes the following fields: .Bd -literal -offset indent - int tm_sec; /\(** seconds (0 - 60) \(**/ - int tm_min; /\(** minutes (0 - 59) \(**/ - int tm_hour; /\(** hours (0 - 23) \(**/ - int tm_mday; /\(** day of month (1 - 31) \(**/ - int tm_mon; /\(** month of year (0 - 11) \(**/ - int tm_year; /\(** year \- 1900 \(**/ - int tm_wday; /\(** day of week (Sunday = 0) \(**/ - int tm_yday; /\(** day of year (0 - 365) \(**/ - int tm_isdst; /\(** is summer time in effect? \(**/ - char \(**tm_zone; /\(** abbreviation of timezone name \(**/ - long tm_gmtoff; /\(** offset from UTC in seconds \(**/ + int tm_sec; /* seconds (0 \- 60) */ + int tm_min; /* minutes (0 \- 59) */ + int tm_hour; /* hours (0 \- 23) */ + int tm_mday; /* day of month (1 \- 31) */ + int tm_mon; /* month of year (0 \- 11) */ + int tm_year; /* year \- 1900 */ + int tm_wday; /* day of week (Sunday = 0) */ + int tm_yday; /* day of year (0 \- 365) */ + int tm_isdst; /* is summer time in effect? */ + char *tm_zone; /* abbreviation of timezone name */ + long tm_gmtoff; /* offset from UTC in seconds */ .Ed .Pp The @@ -289,7 +286,7 @@ will also be overwritten at the next call .Fn tzset ) . .Pp The default system time zone may be set by running -.Li Dq zic -l timezone +.Dq Li zic -l timezone as the superuser. .Pp Avoid using out-of-range values with |