Re: How to change date and time (182 Views)
Reply
Occasional Contributor
Vijay Bhatkar
Posts: 4
Registered: ‎05-28-2008
Message 1 of 12 (183 Views)

How to change date and time

I have HP-UX11.11 installed on my system, I want to change the date & time of my system.
Please use plain text.
Respected Contributor
OFC_EDM
Posts: 740
Registered: ‎07-13-2004
Message 2 of 12 (183 Views)

Re: How to change date and time

read the manual

# man date

It will tell you how to set it. As well as display it etc. etc
The Devil is in the detail.
Please use plain text.
Respected Contributor
OFC_EDM
Posts: 740
Registered: ‎07-13-2004
Message 3 of 12 (183 Views)

Re: How to change date and time

Here's a link to the MAN pages
http://docs.hp.com/en/hpuxman_pages.html

And specifically the date command
http://docs.hp.com/en/B2355-90689/date.1.html
The Devil is in the detail.
Please use plain text.
Respected Contributor
OFC_EDM
Posts: 740
Registered: ‎07-13-2004
Message 4 of 12 (183 Views)

Re: How to change date and time

An Example


Set the date to Oct 8, 12:45 a.m.

date 10080045
The Devil is in the detail.
Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,261
Registered: ‎10-02-2001
Message 5 of 12 (183 Views)

Re: How to change date and time

But it's may!

;-)

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! star in the left column!   
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 6 of 12 (183 Views)

Re: How to change date and time

You can also use "/sbin/set_parms date_time". However, you should use caution when time-dependant application like databases are involved. Setting the clock backward can wreak havoc on a DB app.


Pete

Pete
Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,261
Registered: ‎10-02-2001
Message 7 of 12 (183 Views)

Re: How to change date and time

In addition to this, you should also check

set_parms timezone
set_parms date_time

Is your timezone setup correct?

Hope this helps!
Regards
Torsten.

__________________________________________________

There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________

No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! star in the left column!   
Please use plain text.
Occasional Contributor
Vijay Bhatkar
Posts: 4
Registered: ‎05-28-2008
Message 8 of 12 (183 Views)

Re: How to change date and time

yes, my time zone is correct...is reboot necesssary for change
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 9 of 12 (183 Views)

Re: How to change date and time

Not necessary, but it might be a good idea. I think /sbin/set_parms suggests rebooting but you can bypass.


Pete

Pete
Please use plain text.
Honored Contributor
john korterman
Posts: 1,117
Registered: ‎11-15-2000
Message 10 of 12 (183 Views)

Re: How to change date and time

Hi,

it is a good idea to discuss the impact with your dbas/users, especially if you set the time backwards: e.g. transaction no. 5 may then suddenly seem to have been committed before transaction no. 4.

regards,
John K.
it would be nice if you always got a second chance
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 25,007
Registered: ‎03-06-2006
Message 11 of 12 (182 Views)

Re: How to change date and time

Make sure you need to set the date and time because the UTC time is incorrect. You may have local time wrong and you just need to set TZ.
Now it is: Thu May 29 12:57:08 UTC 2008
Please use plain text.
Regular Advisor
sachit patil
Posts: 135
Registered: ‎01-10-2005
Message 12 of 12 (182 Views)

Re: How to change date and time

hi you can use date command to change time and date .
But your server is configure ntp server or you can see it /etc/ntp.conf




Regards
Sachit
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation