Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ tz(M) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ctime(S)

date(C)

environ(M)

timezone(F)


 tz(M)                           19 June 1992                           tz(M)


 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 file /etc/TIMEZONE (see timezone(F) for a complete descrip-
    tion 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 file
    /etc/TIMEZONE.

 Files

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

 See also

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

 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, (that is, 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).

 Value added

    tz is an extension of AT&T System V provided by The Santa Cruz Operation,
    Inc.


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