Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

how to change the date and time in hpunix

Abubakkar
Frequent Contributor

how to change the date and time in hpunix

how to change the date and time in hpunix
5 REPLIES
Dennis Handly
Acclaimed Contributor

Re: how to change the date and time in hpunix

What does "date; date -u" show?
Does the latter show the correct UTC/GMT time?
(Now is about: Jun 7, 2010 05:28:02 GMT)
If so, your TZ setting is wrong.

You can use the date(1) command to set the time & date.
Kapil Jha
Honored Contributor

Re: how to change the date and time in hpunix

just use date command,
keep in mind about TZ as suggest by Dennis.
Do not put the date behind if your server is running oracle, you would be doomed.

WHat about NTP is it running on your environment.
#ntpq -p

If yes check its configuration and let it handle time for you.

Need more information.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Asif Sharif
Honored Contributor

Re: how to change the date and time in hpunix

Salam Abubakkar,

date [-u] [mmddhhmm[[cc]yy]]
date -u 070611302010

mm - Month number [01-12].
dd - Day number in the month [01-31].
hh - Hour number (24-hour system) [00-23].
mm - Minute number [00-59].
cc - Century minus one [19-20].
yy - Last two digits of the year number [70-99, 00-37 (1970-1999, 2000-2037)]. If omitted, the current year is used.

You can use either SAM or set_parms. e.g.

#set_parms date_time

Regards,
Asif Sharif
Ramesh kannan.S
Occasional Advisor

Re: how to change the date and time in hpunix

Hi abu,

#set_parms date_time

#man set_parms



Regards

RAM
rariasn
Honored Contributor

Re: how to change the date and time in hpunix

Hi,

SAM --> Time --> System CLOCK

rgs,