Operating System - HP-UX
1832872 Members
2271 Online
110048 Solutions
New Discussion

Manually change date and time on HP-UX

 
SOLVED
Go to solution
AL_3001
Regular Advisor

Manually change date and time on HP-UX

Hi Friends,

Current date and time on our HP-UX test system is :
-----------------------------
Sat Mar 29 11:20:32 GMT 2008
-----------------------------

We want to move it forward by one hour i.e 12:20:32.

How to change the same?

Thanks
3 REPLIES 3
piyush mathiya
Trusted Contributor
Solution

Re: Manually change date and time on HP-UX

Ashish,
You have to use the below command.
date [-u] [mmddhhmm[[cc]yy]]
date -u 032912202008

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.

Regards,
Piyush Mathiya
AL_3001
Regular Advisor

Re: Manually change date and time on HP-UX

Thanks Piyush
Dennis Handly
Acclaimed Contributor

Re: Manually change date and time on HP-UX

>We want to move it forward by one hour i.e 12:20:32.

Something wrong here. You don't want to move your clock into the future.

If you are not in the GMT timezone, you need to set your TZ correctly to display your local time.