- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: TIMEZONE and /etc/tztab
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2014 01:13 PM
10-13-2014 01:13 PM
TIMEZONE and /etc/tztab
Hi :
I have two servers with HP-UX 11.31.
One Show in the command "date" CST6 time zone
2th Show in the comman "date" CRST6
I have some problem with 2th with CRST6 , i found /etc/default/tz with CST6 value and i found /etc/TIMEZONE with CRST6 value.
Variable which overwrites the / etc / tztab file should have a time zone without summer changes to winter.
Also I need if I use (do not change the time in summer or winter)
/ etc / TIMEZONE
TZ = CST6
What should I do to use a TIMEZONE hours without changes
- Tags:
- Time Zone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2014 06:19 PM
10-13-2014 06:19 PM
Re: TIMEZONE and /etc/tztab
The /usr/lib/tztab file is a series of predefined timezone specifications. The /etc/TIMEZONE file is where you set the value to be used for logins via /etc/profile. The /etc/default/tz with CST6 is just the default set by HP-UX at installation and should be manually changed to match /etc/TIMEZONE. The value "CRST6" is not defined in the standard HP tztab file and is very likely a spelling mistake.
The man page: man environ will describe how the TZ variable can affect the representation of time. All time on HP-UX servers is kept in UTC time (aka, Greenwich Mean Time). The TZ variable causes the library routines for time to translate UTC into a new value. You can define a custom timezone but there is no point. You use the value that corresponds to your location. If there is not an exact match, read the environ man page and create your own entry in the tztab file. Timezones are political so there are dozens of rules in the tztab file, both for locations and for daylight saving changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2014 09:38 PM - edited 10-20-2014 09:42 PM
10-20-2014 09:38 PM - edited 10-20-2014 09:42 PM
Re: TIMEZONE and /etc/tztab
>Variable which overwrites the /etc/tztab file should have a time zone without summer changes to winter.
Is this some place in Indiana? Or some place in Canada near the north pole?
>I need if I use (do not change the time in summer or winter) TZ=CST6
>What should I do to use a TIMEZONE hours without changes
If you don't have the second zone name, then there is no daylight saving time.
[:]STDoffset[DST[offset][,rule]]
>read the environ man page and create your own entry in the tztab file.
You can use environ(5) to create a one time year entry. Or tztab(4) to enter many year rules.
Be aware the later will prevent any tztab patch from being installed.
>so there are dozens of rules in the tztab file, both for locations and for daylight saving changes.
If you don't count 1/2 hours zones (India & Venezuela), there are 24 northern and 24 southern and 24 around the equator zones with and without daylight saving time.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP