System Administration
Showing results for 
Search instead for 
Do you mean 

How to change date and time

Occasional Contributor

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.
11 REPLIES
Respected Contributor Respected Contributor

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.
Respected Contributor Respected Contributor

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.
Respected Contributor Respected Contributor

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.
Acclaimed Contributor Acclaimed Contributor

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! thumb below!   
Outstanding Contributor Outstanding Contributor

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
Acclaimed Contributor Acclaimed Contributor

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! thumb below!   
Occasional Contributor

Re: How to change date and time

yes, my time zone is correct...is reboot necesssary for change
Outstanding Contributor Outstanding Contributor

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
Honored Contributor Honored Contributor

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
Acclaimed Contributor Acclaimed Contributor

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
Highlighted
Regular Advisor Regular Advisor

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