- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Day Light Saving!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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-19-2005 08:22 PM
10-19-2005 08:22 PM
Day Light Saving!
Can anybody tell me how to check if Daylight savings is enabled or not on a HP server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2005 08:29 PM
10-19-2005 08:29 PM
Re: Day Light Saving!
This variable is set when you execute 'set_parms timezone'. Set_parms
edits the file '/etc/TIMEZONE,' which exports the 'TZ' environment
variable. When you reboot after executing set_parms, the file
/etc/TIMEZONE will be read and your TZ variable set to the value you
specified. The value is in the format:
[:]STDoffset[DST[offset][,rule]]
For example: PST8PDT for the U.S. Pacific Time Zone
See the environ(5) manpage for a detailed description of the format.
Note, the offset for daylight savings time is supplied by the
'/usr/lib/tztab' configuration file.
libc functions like ctime use the 'TZ' variable to determine the
timezone.
Cheers
Hanwant Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2005 08:44 PM
10-19-2005 08:44 PM
Re: Day Light Saving!
You have to see /etc/TIMEZONE like in my zone:
# more /etc/TIMEZONE
TZ=MET-1METDST
export TZ
As you can see the variable TZ has -1METDST which meens that DST is enabled when it occurs depending of the parameters for date when it changes in /etc/zoneinfo/MET. It should be same for your time zone.
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2005 11:14 PM
10-19-2005 11:14 PM
Re: Day Light Saving!
Type kmtune | grep dst
Quickest way to check!
Carlo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2005 11:22 PM
10-19-2005 11:22 PM
Re: Day Light Saving!
dst.pl -n will display the next time change. Invoke as dst.pl for full usage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2005 01:32 AM
10-20-2005 01:32 AM
Re: Day Light Saving!
By using a simple variable, each user can see their own timezone which is great for an international machine. A user inn Australia and a user in England can login to the same machine, yet see the time displayed in their own timezone - just set TZ appropriately in their login profile (typically .profile).
As far as whether your login will show the time change, tpye the command:
echo $TZ
If it has only a single timezone name (like GMT0) then no Daylight Saving will be observed. If it has the extension (like GMT0BST) then the rules for British time will be obsevered as defined in /usr/lib/tztab.
The file /etc/TIMEZONE provides a default TZ value in /etc/profile for all users, but this is just a default value and is most often set to match the timezone where the machine is located (ie, for the console). You can actually see the time in any timezone by temporarily defining a different timezone for the date command, like these examples:
TZ=EST5EDT date
TZ=PST8PDT date
TZ=GMT0 date
If you find that your particular timezone is not found in /usr/lib/tztab, don't worry. You can make your own timezone entry in tztab. Use the tztab comments and man page for tztab to help with this task.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 03:03 AM
10-24-2005 03:03 AM
Re: Day Light Saving!
We shut down our databases and apps for the time change in the fall; I wonder if this could easily be avoided by using the "Slowly adjust the time" feature instead.
Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 03:18 AM
10-24-2005 03:18 AM
Re: Day Light Saving!
The 'slow' adjustment is typically requires about as much as an hour per minute of change, so changing 60 minutes is not possible in less than one day. The whole point of slewing the time is that every time tick (all 86,400 seconds) will occur per 25 hour period, so the time between ticks is slightly adjusted to keep in sync with the master clock.
Bill Hassell, sysadmin