xref: /original-bsd/lib/libc/gen/timezone.3 (revision 7afc0fa3)
1.\" Copyright (c) 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"	@(#)timezone.3	8.2 (Berkeley) 04/19/94
7.\"
8.Dd ""
9.Dt TIMEZONE 3
10.Os
11.Sh NAME
12.Nm timezone
13.Nd return the timezone abbreviation
14.Sh SYNOPSIS
15.Ft char *
16.Fn timezone "int zone" "int dst"
17.Sh DESCRIPTION
18.ft B
19This interface is for compatibility only; it is impossible to reliably
20map timezone's arguments to a time zone abbreviation.
21See ctime(3).
22.ft P
23.Pp
24The
25.Fn timezone
26function returns a pointer to a time zone abbreviation for the specified
27.Ar zone
28and
29.Ar dst
30values.
31.Ar Zone
32is the number of minutes west of GMT and
33.Ar dst
34is non-zero if daylight savings time is in effect.
35.Sh SEE ALSO
36.Xr ctime 3
37.Sh HISTORY
38A
39.Fn timezone
40function appeared in
41.At v7 .
42