1835956 Members
2700 Online
110088 Solutions
New Discussion

Date and time

 
SOLVED
Go to solution
surya_3
Occasional Contributor

Date and time

Hi i need to change the date of HPux-11.11 server one day back. How can i do it and what are the things to be taken care ?

Thanks in advance ,
SPV
3 REPLIES 3
John Poff
Honored Contributor
Solution

Re: Date and time

Hi,

You can do it easily with the 'date' command, but you'll need to be careful. You'll want to stop any applications that might be running [databases, etc.], and also take a look at any scheduled jobs such as cron jobs.

I'd suggest using Ignite to take a system backup before doing it, just in case something gets hosed.

Are you changing the date back one day and then back to the current day for a test, or is the date just a day off?

JP
Paul Sperry
Honored Contributor

Re: Date and time

Use

date [-a [-]sss[.fff]]

Slowly adjust the time by sss.fff seconds (fff represents
fractions of a second). This adjustment can be positive or
negative. The system's clock will be sped up or slowed down
until it has drifted by the number of seconds specified.
surya_3
Occasional Contributor

Re: Date and time

Ya , i need to take the date one day back as the current date is one day fast.