]> git.saurik.com Git - apple/libc.git/blobdiff - gen/tzset.3
Libc-1244.50.9.tar.gz
[apple/libc.git] / gen / tzset.3
index 0d718f076d4b0a6c361c060c682dccc4bd555ef5..18f980bb233069aa129dd904ce48d00f35876132 100644 (file)
 .Sh SYNOPSIS
 .In time.h
 .Ft void
-.Fn tzset void
+.Fo tzset
+.Fa void
+.Fc
 .Ft void
-.Fn tzsetwall void
+.Fo tzsetwall
+.Fa void
+.Fc
 .Sh DESCRIPTION
 The
 .Fn tzset
@@ -66,13 +70,17 @@ does not appear in the environment, the best available approximation to
 local wall clock time, as specified by the
 .Xr tzfile 5 Ns -format
 file
-.Pa /etc/localtime
+#ifdef UNIFDEF_MOVE_LOCALTIME
+.Pa /var/db/timezone/localtime ,
+#else /* !UNIFDEF_MOVE_LOCALTIME */
+.Pa /etc/localtime ,
+#endif /* UNIFDEF_MOVE_LOCALTIME */
 is used.
 .Pp
 If
 .Ev TZ
-appears in the environment but its value is a null string, Coordinated
-Universal Time
+appears in the environment but its value is a null string,
+Coordinated Universal Time
 .Pq Tn UTC
 is used (without leap second correction).
 .Pp
@@ -84,7 +92,7 @@ the rest of its value is used as a pathname of a
 .Xr tzfile 5 Ns -format
 file from which to read the time conversion information.
 If the first character of the pathname is a slash
-.Pq Ql /
+.Pq Ql / ,
 it is used as
 an absolute pathname; otherwise, it is used as a pathname relative to
 the system time conversion information directory.
@@ -290,27 +298,32 @@ may be used to separate the
 .Em rule
 from the rest of the specification.
 .Sh FILES
-.Bl -tag -width /usr/share/zoneinfo/posixrules -compact
+#ifdef UNIFDEF_TZDIR_SYMLINK
+.ds zi /var/db/timezone/zoneinfo
+#else /* !UNIFDEF_TZDIR_SYMLINK */
+.ds zi /usr/share/zoneinfo
+#endif /* UNIFDEF_TZDIR_SYMLINK */
+.Bl -tag -width \*(zi/posixrules -compact
 .It Pa /etc/localtime
 local time zone file
-.It Pa /usr/share/zoneinfo
+.It Pa \*(zi
 time zone directory
-.It Pa /usr/share/zoneinfo/posixrules
+.It Pa \*(zi/posixrules
 rules for
 .Tn POSIX Ns -style
 .Tn TZ Ns 's
-.It Pa /usr/share/zoneinfo/GMT
+.It Pa \*(zi/GMT
 for
 .Tn UTC
 leap seconds
 .El
 .Pp
 If the file
-.Pa /usr/share/zoneinfo/GMT
+.Pa \*(zi/GMT
 does not exist,
 .Tn UTC
 leap seconds are loaded from
-.Pa /usr/share/zoneinfo/posixrules .
+.Pa \*(zi/posixrules .
 .Sh SEE ALSO
 .Xr date 1 ,
 .Xr gettimeofday 2 ,