- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to change the time and time zone
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
Discussions
Discussions
Forums
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
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
тАО12-01-2009 05:44 AM
тАО12-01-2009 05:44 AM
i want to change the time and time zone (CST).
My current setting:
# date
Tue Dec 1 09:29:23 NST 2009
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 05:50 AM
тАО12-01-2009 05:50 AM
SolutionYou can use:
# /sbin/set_parms timezone
...to trigger an interactive reset.
Otherwise, change '/etc/TIMEZONE' and '/etc/default/tz' to reflect your correct zone.
Since a "timezone" is a +- offset from UTC (also known as GMT) and since UNIX handles time in epoch UTC seconds, do _not_ adjust your actual server time if it is already correct. You can verify it with:
# date -u
...and compare the value returned to an reliable external source. Of course you _should_ also be running NTP to keep your server's time synchronized.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 06:08 AM
тАО12-01-2009 06:08 AM
Re: How to change the time and time zone
I would use set_parms timezone
In this case.
That utility must be run by root.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 07:14 AM
тАО12-01-2009 07:14 AM
Re: How to change the time and time zone
Just a word of caution. Remember, that if you change time settings you must be sure that you will not affect applications, if you are backing up in time.
Software, such as Oracle, are timestamped for transactions and would be adversely affected in the event of a time backup. Going forward - no big deal.
Kindest regards,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 07:49 PM
тАО12-01-2009 07:49 PM
Re: How to change the time and time zone
This shouldn't apply if you are just changing timezones.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 08:06 PM
тАО12-01-2009 08:06 PM
Re: How to change the time and time zone
You didn't mention that you wanna go forward or backward.
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 08:08 PM
тАО12-01-2009 08:08 PM
Re: How to change the time and time zone
To change the TIMEZONE, you need to do the following steps:
1. edit /etc/TIMEZONE so that it contains the following two lines:
TZ=CST-XXXX (XXXX=your desired time standard)
export TZ
2. edit /etc/default/tz
3.Edit the tztab file
# cd /usr/lib
#cp ├в p tztab /tmp/dst (copy tztab to /tmp/dst)
# vi tztab
4.#shutdown ├в ry now
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 08:18 PM
тАО12-01-2009 08:18 PM
Re: How to change the time and time zone
Hi Senthil,
For changing time you can use
#date -u
For time zone, you have to edit
#vi /etc/TIMEZONE
&
#vi /etc/default/tz file
http://docs.hp.com/en/B3921-90010/timezone.5.html
Rgds//
Taifur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 08:28 PM
тАО12-01-2009 08:28 PM
Re: How to change the time and time zone
>3. Edit the tztab file
There is no need to do this unless you are creating NEW timezones.
You can also simply export TZ in your .profile to your new timezone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2009 02:13 AM
тАО12-02-2009 02:13 AM
Re: How to change the time and time zone
set_parms date_time
set_parms timezone
regards
sujit