1833874 Members
2642 Online
110063 Solutions
New Discussion

Re: Iceland Timezone

 
Jeff Grant_2
New Member

Iceland Timezone

What timezone does HPUX use for Iceland? I can't seem to find it in the /usr/lib/tztab or anywhere else for that matter.
What would the command line be for setting the timezone?
3 REPLIES 3
Jim Mallett
Honored Contributor

Re: Iceland Timezone

Try:

/sbin/set_parms timezone

Select Europe (which is selection 4 for me)
Then you'll see Iceland (selection 5 for me)

The actual setting in /etc/TIMEZONE is something like: IST1

HTH...Jim
Hindsight is 20/20
Jeff Grant_2
New Member

Re: Iceland Timezone

Thanks Jim! It didn't occur to me that Iceland might be in Europe and not in North America. D'oh!!
Bill Hassell
Honored Contributor

Re: Iceland Timezone

The other solution is that unless you need some complicated daylight saving rules, you can just make up your own timezone value. All time in HP-UX is kept in GMT (or Zulu or UTC) so your local tme would be -4 hours from GMT. According to the environ man page, you can makeup any 3+ character string for your timezone (like ICE) and follow that with the number of hours needed to equal GMT, so TZ=ICE4 will set your local time correctly. You can refine your TZ value using the rules in environ, or add your own custom values to /usr/lib/tztab (man 4 tztab).


Bill Hassell, sysadmin