Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

environ(M)

date(C)

timezone(F)

ctime(S)


     TZ(M)                                      UNIX System V



     Name
          tz - time zone environment variable


     Syntax
          /etc/tz


     Description
          TZ is the shell environment variable for the  time  zone  of
          the  system  and  is set in the files /etc/default/login and
          /etc/TIMEZONE (see timezone(F) for a complete description
          of the syntax for defining TZ).

          The shell script /etc/tz, generally run during installation,
          prompts  for  the  correct  time zone, prompts for the dates
          when time is shifted from  standard  to  daylight  time  and
          back, and for the number of hours to shift (partial hours in
          the form of hh:mm:ss are acceptable).  and sets TZ correctly
          in  the appropriate files.  The following files are examined
          to see if they read from /etc/TIMEZONE to set TZ for their
          environment:

               /etc/cshrc
               /etc/profile
               /etc/rc2
               /.profile

          If these files do not read from /etc/TIMEZONE, a warning  is
          issued.

          Users living in a time zone different than that of the  host
          machine   may   change   TZ   in   their  $HOME/.profile  or
          $HOME/.login files.

          To change the time zone for the entire system, run the shell
          script  /etc/tz  (as  root)  or  use an editor to change the
          variable    TZ    in    the    files    /etc/TIMEZONE    and
          /etc/default/login.
          The  TZ variable in /etc/default/login
          causes the time zone to be set correctly on logging  in  and
          for programs such as uucico.

     Files
          /etc/rc2
          /etc/default/login
          /etc/tz
          $HOME/.profile
          $HOME/.login

     See Also
          environ(M), date(C), timezone(F), ctime(S)


     Notes
          The date(C) automatically switches  from  Standard  Time  to
          Summer  Time (Daylight Saving Time).  Leap days are properly
          accounted for.

          Changes to TZ are immediately effective, (i.e. if a  process
          changes the TZ variable, the next call to a ctime(S) routine
          returns a value based on the new value of the variable).


     (printed 8/23/89)                                  TZ(M)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026