1840126 Members
5166 Online
110161 Solutions
New Discussion

TimeZone=LOCALTIME+6 ?

 
SOLVED
Go to solution
Rgomes
Valued Contributor

TimeZone=LOCALTIME+6 ?

Hi All,

Our local time is GMT+6, what should be the system time( of HP9000, 11i) or timezone,

1)localtime -6 ?

[as localtime=GMT+6
=> GMT=localtime -6 ]

When installing 11i, it asks for the timezone.

2)What does below mean,

$ps -ef |grep exp

root 1623 1618 0 May 2 ? 0:00 sh -c cd /opt/sanmgr/hostagent; TZ=LOCALTIME+6; export TZ; ../jre/bi

On this system, we have put timezone=LOCALTIME -6, as we assumed timezone=GMT or UTC. But why the above grep message shows,TZ=LOCALTIME+6.

Can somebody explain this? It would be a great help.

Thanks in advance.

Richard
3 REPLIES 3
Jdamian
Respected Contributor
Solution

Re: TimeZone=LOCALTIME+6 ?

You can read the following paragraph in manual pages of environ(5):

TZ sets time zone information. TZ can be set using the format:
[:]STDoffset[DST[offset][,rule]]

where:
STD and DST Three or more bytes that designate the standard time zone (STD) and summer (or daylight-savings) time zone (DST) STD is required. If DST is not specified, summer d time does not apply in this locale. Any characters other than digits, comma (,), minus (-), plus (+), or ASCII NUL are allowed.

offset offset is the value that must be added to
local time to arrive at Coordinated Universal Time (UTC). Offset is of the form:
hh[:mm[:ss]]

Hour (hh) is any value from 0 through 23. The optional minutes (mm) and seconds (ss) fields are a value from 0 through 59. The hour field is required. If offset is preceded by a -, the time zone is east of the Prime Meridian. A + preceding offset indicates that the time zone is west of the Prime Meridian. The default case is west of the Prime Meridian.

When you say 'Our local time is GMT+6' I understand that if in GMT zone time is 00:00, in your zone it is 06:00. Then I think you should set the value of TZ variable

TZ=UTC-6
Rgomes
Valued Contributor

Re: TimeZone=LOCALTIME+6 ?

Hi Damian,


My /etc/TIMEZONE contains these 2 lines:

TZ=BDT-6
export TZ

So, I should change it to:

TZ=UTC-6

This server is mission criticle, some billing application is running on it.

Thanks,

Richard
Jdamian
Respected Contributor

Re: TimeZone=LOCALTIME+6 ?

I think this issue is not enough to reboot a critical mission system.

if you run "ps -ef |grep exp" and appears

root 1623 1618 0 May 2 ? 0:00 sh -c cd /opt/sanmgr/hostagent; TZ=LOCALTIME+6; export TZ; ../jre/bi

is because this command has been launched explicitly using 'LOCALTIME+6'. I cannot find out the reasons for this. Who launched that ?

P.D: I cannot find 'BDT' timezone in my system (/usr7lib/tztab).