[BACK]Return to tzset.3 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / time

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/time/tzset.3 between version 1.37.2.2 and 1.38

version 1.37.2.2, 2018/10/20 06:58:22 version 1.38, 2018/05/04 15:51:00
Line 1 
Line 1 
 .\"     $NetBSD$  .\"     $NetBSD$
 .Dd October 19, 2018  .Dd May 5, 2018
 .Dt TZSET 3  .Dt TZSET 3
 .Os  .Os
 .Sh NAME  .Sh NAME
Line 37  functions.
Line 37  functions.
 .Pp  .Pp
 If  If
 .Ar tz  .Ar tz
 is not a valid timezone description, or if the object cannot be allocated,  is not a valid time zone description, or if the object cannot be allocated,
 .Fn tzalloc  .Fn tzalloc
 returns a  returns a
 .Dv NULL  .Dv NULL
Line 104  The
Line 104  The
 .Fn tzset  .Fn tzset
 function acts like  function acts like
 .Dv tzalloc(getenv("TZ")) ,  .Dv tzalloc(getenv("TZ")) ,
 except it saves any resulting timezone object into internal  except it saves any resulting time zone object into internal
 storage that is accessed by  storage that is accessed by
 .Fn localtime ,  .Fn localtime ,
 .Fn localtime_r ,  .Fn localtime_r ,
 and  and
 .Fn mktime .  .Fn mktime .
 The anonymous shared timezone object is freed by the next call to  The anonymous shared time zone object is freed by the next call to
 .Fn tzset .  .Fn tzset .
 If the implied call to  If the implied call to
 .Fn tzalloc  .Fn tzalloc
Line 178  Three or more bytes that are the designa
Line 178  Three or more bytes that are the designa
 or the alternative  or the alternative
 .Cm ( dst  .Cm ( dst
 such as daylight saving time)  such as daylight saving time)
 timezone.  time zone.
 Only  Only
 .Cm std  .Cm std
 is required; if  is required; if
Line 233  The hour must be between zero and 24, an
Line 233  The hour must be between zero and 24, an
 seconds) \*(en if present \*(en between zero and 59.  seconds) \*(en if present \*(en between zero and 59.
 If preceded by a  If preceded by a
 .Dq -  .Dq -
 the timezone shall be east of the Prime Meridian; otherwise it shall be  the time zone shall be east of the Prime Meridian; otherwise it shall be
 west (which may be indicated by an optional preceding  west (which may be indicated by an optional preceding
 .Dq + ) .  .Dq + ) .
 .It Cm rule  .It Cm rule
Line 331  is not given, is
Line 331  is not given, is
 .Pp  .Pp
 Here are some examples of  Here are some examples of
 .Va TZ  .Va TZ
 values that directly specify the timezone rules; they use some of the  values that directly specify the time zone rules; they use some of the
 extensions to POSIX.  extensions to POSIX.
 .Bl -tag  .Bl -tag
 .It EST5  .It EST5
Line 398  from the rest of the specification.
Line 398  from the rest of the specification.
 .Sh FILES  .Sh FILES
 .Bl -tag -width /usr/share/zoneinfo/posixrules -compact  .Bl -tag -width /usr/share/zoneinfo/posixrules -compact
 .It Pa /etc/localtime  .It Pa /etc/localtime
 local timezone file  local time zone file
 .It Pa /usr/share/zoneinfo  .It Pa /usr/share/zoneinfo
 local timezone information directory  time zone information directory
 .\" .It Pa /usr/share/zoneinfo/localtime  \" .It Pa /usr/share/zoneinfo/localtime
 .\" local timezone file  \" local time zone file
 .It Pa /usr/share/zoneinfo/posixrules  .It Pa /usr/share/zoneinfo/posixrules
 used with POSIX-style TZ's  used with POSIX-style TZ's
 .It Pa /usr/share/zoneinfo/GMT  .It Pa /usr/share/zoneinfo/GMT

Legend:
Removed from v.1.37.2.2  
changed lines
  Added in v.1.38

CVSweb <webmaster@jp.NetBSD.org>