DCE Installation, Configuration, and Management Guide

Recommended Usage
HP NonStop DCE Installation, Configuration, and Management Guide429552-005
6-6
Local Time Example 3
Local Time Example 3
If you are in the United Kingdom and do not want to rely on the TZ environment
variable to cause NonStop DCE to display time in, for example, British Summer Time,
you can copy the binary time-zone file for Great Britain to
/etc/zoneinfo/localtime. The OSS shell date command does not read the
localtime file, so this action does not affect how date displays the time.
/etc/zoneinfo: mv localtime localtime.save
/etc/zoneinfo: cp /opt/dcelocal.hostname/etc/zoneinfo/GB-Eire localtime
/etc/zoneinfo: echo $TZ
/etc/zoneinfo: dtscp show current time
Current Time = 1995-10-05-16:34:14.653+01:00I0.102
/etc/zoneinfo: cp /opt/dcelocal.hostname/etc/zoneinfo/GMT localtime
/etc/zoneinfo: dtscp show current time
Current Time = 1995-10-05-15:35:04.677+00:00I0.101
where hostname is the name of the virtual host.
Local Time Example 4
The value of the TZ variable always overrides the localtime file when NonStop DCE
displays time. For example:
/etc/zoneinfo: cp /opt/dcelocal.hostname/etc/zoneinfo/GB-Eire localtime
/etc/zoneinfo: echo $TZ
/etc/zoneinfo: dtscp show current time
Current Time = 1995-10-05-16:50:09.144+01:00I0.101
/etc/zoneinfo: export TZ="GMT"
/etc/zoneinfo: dtscp show current time
Current Time = 1995-10-05-15:50:42.983+00:00I0.102
where hostname is the name of the virtual host.