Operating System - HP-UX
1751880 Members
5087 Online
108783 Solutions
New Discussion юеВ

Re: how to change time in hp-ux 11i v3?

 
SOLVED
Go to solution
Aungshuman Paul
Regular Advisor

how to change time in hp-ux 11i v3?

Hi,

how to change time in hp-ux 11i v3?

Aungshu
5 REPLIES 5
Ivan Krastev
Honored Contributor

Re: how to change time in hp-ux 11i v3?

Use date command - http://docs.hp.com/en/B9106-90007/date.1.html

But I will recommend you to set up ntp client - http://docs.hp.com/en/B2355-90774/ch04.html

regards,
ivan
Richard Hepworth
Esteemed Contributor
Solution

Re: how to change time in hp-ux 11i v3?

Hi,

use date command

man date:

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

Set the HP-UX system clock to the date and time
specified. You require the superuser privilege.

If you include the -u option, the specified date and time
is assumed to be in Coordinated Universal Time (UTC).

The numeric argument is interpreted left to right in
two-digit pairs as follows:

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.
Suraj K Sankari
Honored Contributor

Re: how to change time in hp-ux 11i v3?

Hi,
There are 3 way to change the system time

1. set_parms
2. date
3. smh

Suraj
Aungshuman Paul
Regular Advisor

Re: how to change time in hp-ux 11i v3?

Thanks done using date command.
Taifur
Respected Contributor

Re: how to change time in hp-ux 11i v3?

Hi Paul,

For changing time you can use date command
Check man page of date.



http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51_HTML/MAN/MAN1/0083____.HTM


Rgds//
Taifur