DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

tz(M)


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 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.

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.

Limitations

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).

Files

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

See also

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

Standards conformance

tz is not part of any currently supported standard; it is an extension of AT&T System V provided by The Santa Cruz Operation, Inc.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003