Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update time

Status
Not open for further replies.

Aaron1940

MIS
Dec 14, 2000
27
US
What is the command to change the time on the server?

Thanks in advance,

Aaron M
 
The simplest way is to use smit. To begin, enter smit date at the command prompt (as root), and make the appropriate changes. Press enter to apply the change(s).
 
You can use the date command to change the date and time on the system. Here's how you use the date command:-

f80>date mmddHHMM[ccyy]

Where mm = month in number
dd = day of the month
HH = hour
MM = minute
cc = century (this would be 20)
yy = year (eg. for 2002, it would be 02)

So to change the time to 14:20 on 23rd Oct. 2002 the command would be:-
f80>date 102314202002

Cheers,
Patrick
 
You can use the date command to change the date and time on the system. Here's how you use the date command:-
YOU WILL NEED TO BE root,
f80>date mmddHHMM[ccyy]

Where mm = month in number
dd = day of the month
HH = hour
MM = minute
cc = century (this would be 20)
yy = year (eg. for 2002, it would be 02)

So to change the time to 14:20 on 23rd Oct. 2002 the command would be:-
f80>date 102314202002

Cheers,
Patrick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top