1833858 Members
3031 Online
110063 Solutions
New Discussion

Setting the Date

 
SOLVED
Go to solution
Kal Lee
New Member

Setting the Date

Under 10.20 the date command allows only the user to input hours, minutes but not seconds. Is there another command that would allow for the seconds to be used?

Thanks.
4 REPLIES 4
Rob Smith
Respected Contributor

Re: Setting the Date

I think that you can do it down to the second through SAM. Hope this helps.

Rob

Learn the rules so you can break them properly.
James R. Ferguson
Acclaimed Contributor

Re: Setting the Date

Hi:

There is no command in 10.20 (of which I'm aware) to include the seconds in a time reset.

In 11.x, 'date' has an additonal option to slew the clock +- some number of seconds. The syntax is:

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

where 'fff' represents fractions of a second.

How's that for moving from "no precision" to great precision! ;-)

...JRF...
...JRF...
Vincenzo Restuccia
Honored Contributor
Solution

Re: Setting the Date

Workaround is cp -p date of 11.00 in /usr/contrib/bin of 10.20 and you have the seconds.
Antero Airola
New Member

Re: Setting the Date

If you really need precise system time why not use network time service (xntpd) and let the system take care of the seconds automatically.
You can find xntp in SAM under "time"