Operating System - HP-UX
1835397 Members
2818 Online
110078 Solutions
New Discussion

Re: how to change the system time

 
leyearn
Regular Advisor

how to change the system time

I changed the system time by date command
but the program indicated that the system time
hadn't been changed !
how to change it permnantly!
9 REPLIES 9
Adisuria Wangsadinata_1
Honored Contributor

Re: how to change the system time

Hi,

Try to use set_parms command :

# set_parms date_time

For more details see the man page of set_parms :

# man set_parms

Hope this can help you.

Cheers,
AW
now working, next not working ... that's unix
leyearn
Regular Advisor

Re: how to change the system time

rebooting the system
it's needed or not?
Cem Tugrul
Esteemed Contributor

Re: how to change the system time

Hi,

Also you can do iy from SAM->Time-->System
Clock

no reboot requied...

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Mahesh Kumar Malik
Honored Contributor

Re: how to change the system time

Hi

I could change the system time by date command. No problems

However, if you are facing the problem, pls follow suggestions provided by gentlemen in this thread

Regards
Mahesh
Venkatesan_5
Frequent Advisor

Re: how to change the system time

hi,

by using 'date' command , the system time should change ...if it is not getting changed...then try this

# set_parms date_time

_______________________________________________________________________________

This section enables you to set the system clock.
_______________________________________________________________________________

The current system time is Sun Jul 17 20:55:35 METDST 2005

Is this correct?

Press [y] for yes or [n] for no, then press [Enter] (------press n to change)

_______________________________________________________________________________

You will be prompted for the date and time. Please enter all values
numerically, for example January is 1. The values in the parentheses
give the acceptable range of responses.
_______________________________________________________________________________


Please enter the last two digits of the year (00-99), then press [Enter] (----- give the format)

Please enter the month (1-12), then press [Enter] (----month value)

Please enter the date of the month (1-31), then press [Enter] (-----date value)

Please enter the hour (using 24 hour time) (0-23)
For example: For 10 in the morning enter 10, for 3 in the afternoon enter 15.
Then press [Enter] (------ give value in hours)

Please enter the minute (0-59), then press [Enter] (-----give value in minutes)

You have entered: July 18 12:12:00 MET-1METDST 2005.
This time will be used to reset the system clock.

Is this value correct?

Press [y] for yes or [n] for no, then press [Enter] (----press y to update)

then the system time will be changed permanently...

regds

Venkatesan
R.KrishnaKumar
Frequent Advisor

Re: how to change the system time

Hi ,

U can use 2 methods,

1.Using

#sam
then from the menu choose
Time-->System clock
and then change the time,

2. Use set_parms
#set_parms

Regards,
Krishna
Adisuria Wangsadinata_1
Honored Contributor

Re: how to change the system time

Hi,

For both ways, the system requires no reboot for these procedures.

Cheers,
AW
now working, next not working ... that's unix
Muthukumar_5
Honored Contributor

Re: how to change the system time

Date and time changes with date command will be effective for that terminal only. If you want to change globally and expecting instant effect then use set_parms.

# man set_parms for date_time says,
date_time Allows the user to set the system date and time
interactively. The change takes effect immediately.

hth.
Easy to suggest when don't know about the problem!
Devender Khatana
Honored Contributor

Re: how to change the system time

Hi,

Take some special precautions specially if you are setting the time backwards. I would expact my databases not to be running while changing time.

HTH,
Devender
Impossible itself mentions "I m possible"