1825163 Members
4153 Online
109679 Solutions
New Discussion юеВ

Re: Time Zone matter

 
SOLVED
Go to solution
yc_2
Regular Advisor

Time Zone matter

Hi,

When date comand is issued, the output is as follows:

Tue Feb 28 11:01:07 SST 2006

The setting in /etc/TIMEZONE is as follows:
TZ=SST-8
export TZ

Some queries:
(1) What is the meaning of SST?
(2) Can SST change to SGT as the server is located in Singpaore?

Appreciate any pointer.
7 REPLIES 7
Bill Hassell
Honored Contributor
Solution

Re: Time Zone matter

HP-UX is unique in that the timezone can be completely customized with the TZ variable and the /usr/lib/tztab file.

When you first login, /etc/profile sources the /etc/TIMEZONE file to set TZ for all users. The SST portion of the TZ variable is an arbitrary tag, usually symbolic of the actual timezone and the -8 is the number of hours east of UTC (also known as Greenwich or Zulu) timezone. See the man page for: environ and tztab for details.

You can search through the file /usr/lib/tztab to locate SGT and then edit /etc/TIMEZONE. Now all new logins will have the new timezone value.


Bill Hassell, sysadmin
Arunvijai_4
Honored Contributor

Re: Time Zone matter

Hello,

(1) What is the meaning of SST?

Singapore Standard Time (SST). You can find more information at http://www.singaporestandardtime.org.sg/


(2) Can SST change to SGT as the server is located in Singpaore?

You can leave SST unchanged since it refers to Singapore time.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Yogeeraj_1
Honored Contributor

Re: Time Zone matter

hi,

if you want to modify the timezone, you can use the following command:

set_parms timezone


see man set_parms for more details.

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Rajeev  Shukla
Honored Contributor

Re: Time Zone matter

(1) SST is not by default defined in tztab file in /usr/lib, it is something you can define yourself, or can be anything but its the -8 which matters. Which is the timedifference from UTC/GMT.
(2) as said you could change SST to SGT or (SST in your case i guess means Singapore standard time, which someone must have made before) even PST(pacific standard time) but keep the -8 same otherwise you'll change the time on your server.
Yogeeraj_1
Honored Contributor

Re: Time Zone matter

hi again,

if you use set_parms, the following steps will follow:
=====================================
# set_parms timezone
_______________________________________________________________________________

The following procedure enables you to set the time zone.

Select your location from the following list:

1) North America or Hawaii
2) Central America
3) South America
4) Europe
5) Africa
6) Asia
7) Australia, New Zealand
_______________________________________________________________________________


Enter the number for your location (1-7) then press [Enter] 6
_______________________________________________________________________________

Select your time zone from the following list:

1) Saudi Arabia, Syria | 6) Phillipines, Hong Kong, Eastern Chi
na, Taiwan
|
2) India | 7) Japan
|
3) Pakistan | 8) Korea
|
4) Thailand | 9) Unlisted time zone
|
5) Singapore | 10) Previous menu
_______________________________________________________________________________

Enter the number for your time zone (1 - 10), then press [Enter] 5

_______________________________________________________________________________

You have selected:

Singapore (SST-8).
_______________________________________________________________________________

Is this correct?

Press [y] for yes or [n] for no, then press [Enter]
=================================


Singapore is already: Singapore (SST-8).

no changes required then

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
yc_2
Regular Advisor

Re: Time Zone matter

Thanks for the replies.

One more question:
I modified /etc/TIMEZONE setting to the following in one of the test server:

TZ=SGT-8
export TZ

I did a reboot and now when date command is issued, the SST has changed to SGT.

Will there be any implication?

Bill Hassell
Honored Contributor

Re: Time Zone matter

No, there is no implication. As mentioned, SST or SGT are for appearance, but the -8 is what counts in setting the local time. You can even create your own timezone name such as LEONG-8. The primary purpose for the tztab file is to store Daylight Saving rules. If you don't need any of these rules, your setting of SGT-8 is just fine.


Bill Hassell, sysadmin