Operating System - HP-UX
1745789 Members
4079 Online
108722 Solutions
New Discussion юеВ

How to change date and time

 
Vijay Bhatkar
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 11
OFC_EDM
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.
OFC_EDM
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.
OFC_EDM
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.
Torsten.
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!   
Pete Randall
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
Torsten.
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!   
Vijay Bhatkar
Occasional Contributor

Re: How to change date and time

yes, my time zone is correct...is reboot necesssary for change
Pete Randall
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
john korterman
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