From: "Jeff Wilson" <jwilson@ic.ac.uk>
Subject: Re: Timezone On Tue 64
Date: 2000/04/28 [thread overview]
Message-ID: <01bfb127$be0d8060$d53ec69b@leicester> (raw)
In-Reply-To: 955653289.16040.0.nnrp-11.c2deb51d@news.demon.co.uk
An individual user can create a variable called TZ, but for system wide
use cd as root to /etc/zoneinfo, which has a data file for most time
zones. There create a symbolic link called localtime to the data file
of your choice.
I.e., ln -s /etc/zoneinfo/localtime -> /etc/zoneinfo/GB-Eire
A user's TZ variable will override the localtime link.
--
Jeff Wilson
Adam Price <adam+usenet@pappnase.demon.co.uk> wrote in article
<955653289.16040.0.nnrp-11.c2deb51d@news.demon.co.uk>...
| nospam pscl.com wrote in message
<38f60076.171422963@news.telusplanet.net>...
| >How do you CHANGE the timezone on a True 64 Unix box? Ver. 4.0d
| >
| >trev
|
| I Cross posted this to comp.unix.tru64 since that is a good place to
ask Digital
| Unix questions.
| Also,
|
| In section 4.4 of the Systems administration guide for Tru64 is the
following
| text:
|
| 4.4 Customising Your Time Zone
| Information about configuring your system's time zone is in Chapter
5. This
| section describes how to administer local and worldwide time zone
information
| on your system.
|
| Time zone information is stored in files in the /etc/zoneinfo
directory. The
| /etc/zoneinfo/localtime file is linked to a file in the
/etc/zoneinfo
| directory and specifies the local time zone. These files are linked
during
| system installation, but, as superuser, you can change your local
time
| zone by relinking the /etc/zoneinfo/localtime file. For example, the
| following command changes the local time zone to Canada's Atlantic
time
| zone:
|
|
|
| # ln -sf /etc/zoneinfo/Canada/Atlantic /etc/zoneinfo/localtime
|
|
|
| The /etc/zoneinfo/sources directory contains source files that
specify the
| worldwide time zone and daylight savings time information that is
used to
| generate the files in the /etc/zoneinfo directory. You can change the
| information in the source files and then use the zic command to
generate a
| new file in the /etc/zoneinfo directory. Refer to the zic(8)
reference
| page for more information.
|
| You can also change the default time zone
| information by setting the TZ environment variable in your .login
file or
| shell environment file. If you define the TZ environment variable,
its
| value overrides the default time zone information specified by
| /etc/zoneinfo/localtime. By default, the TZ variable is not defined.
|
| The TZ environment variable has the following syntax:
|
| stdoffset [dst[offset] [,start[/time], end[/time]]]
|
|
| You can also specify the following syntax:
|
| stdoffset [ dst [ offset ] ]
|
|
| The TZ environment variable syntaxes have the following parameters:
|
|
|
| std and dst
| Specifies the three or more characters that designate the standard
(std)
| or daylight savings time (dst) zone.
|
|
| Note
| Daylight savings time is called daylight summer time in some locales.
|
| The dst variable is not specified, daylight savings time time does
not
| apply. You can specify any uppercase and lowercase letters. A leading
| colon (:), comma (,), hyphen (-), plus sign(+), and ASCII NUL are not
allowed.
|
|
| offset
| Specifies the value to be added to the local time to arrive at GMT.
The
| offset variable uses 24-hour time and has the following syntax:
|
|
| hh [ :mm [ :ss ]]
|
|
| If you do not specify the offset variable after the dst variable,
daylight
| savings time is assumed to be 1 hour ahead of standard time. You can
| specify a minus sign (-) before the offset variable to indicate that
the
| time zone is east of the prime meridian; west is the default, which
you
| can specify with a plus sign (+).
|
|
| start and end
| Specifies when daylight savings time starts and ends. The start and
end
| variable has the following syntaxes:
|
|
| Jj
| n
|
| Mm.w.d
|
|
| In the first syntax, the j variable specifies the Julian day, which
is
| between 1 and 365. The extra day in a leap year (February 29) is not
counted.
|
| In the second syntax, the n variable specifies the zero-based Julian
day,
| which is between zero (0) and 365. The extra day in a leap year is
counted.
|
| In the third syntax, the m variable specifies the month number (from
1 to
| 12), the w variable specifies the week number (from 1 to 5), and the
d
| variable specifies the day of the week (from 0 to 6), where zero (0)
| specifies Sunday and six (6) specifies Saturday.
|
|
| time
| Specifies the time, in local time, when the change occurs to or from
| daylight savings time. The time variable uses 24-hour time and has
the
| following syntax: hh [ :mm [ :ss ] ]
|
| The default is 02:00:00.
|
|
| The following example of the TZ environment variable specification
specifies:
|
|
|
| EST (eastern standard time) specifies the standard time, which is 5
hours
| behind GMT.
|
|
| EDT (eastern daylight time) specifies the daylight savings time,
which is
| 4 hours behind GMT.
|
|
| EDT starts on the first Sunday in April and ends on the last Sunday
in
| October; the change to and from daylight savings time occurs at 2:00,
| which is the default time.
|
|
|
| EST5EDT4,M4.1.0,M10.5.0
|
|
| You can also specify the following syntax:
|
| :pathname
|
|
| The pathname variable specifies the pathname of a file that is in the
| tzfile file format and that contains the time conversion information.
For
| example:
|
|
| :US/Eastern
|
|
| Refer to the tzfile(4) reference page for more information on the
file
| format.
|
| If the pathname begins with a slash (/), it specifies an absolute
| pathname; otherwise, the pathname is relative to the /etc/zoneinfo
| directory. If the specified file is unavailable or corrupted, the
system
| defaults to the offset stored in the kernel tz structure.
|
| The time zone formats differ for SVID 2 and SVID 3. For SVID 2,
/usr/sbin
| timezone creates the /etc/svid2_tz file. The contents of the TZ and
TZC
| variables are based on the information you supply when you run
/usr/sbin
| timezone.
|
| For SVID 3, the /etc/svid3_tz file is created during the installation
| process. The contents of the TZ variable is based upon answers you
supply
| to time zone-related questions at installation time.
|
| Refer to the timezone(3) reference page for more information.
|
| Refer to Chapter 5 for information about configuring a time zone for
your
| system.
|
| Hope this helps
| Adam Price
|
|
|
|
prev parent reply other threads:[~2000-04-28 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <38f60076.171422963@news.telusplanet.net>
2000-04-13 4:00 ` Timezone On Tue 64 Adam Price
2000-04-14 4:00 ` trevor.osatchuk
2000-04-28 4:00 ` Jeff Wilson [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox