Wednesday, June 25, 2008

Setting the time on multiple computers at once

usage: date [-nu] [-r seconds] [+format]
date [-u] mmddhhmm[[cc]yy]

-u Display or set the date in UTC (universal) time.

cc The first two digits of the year (the century).
yy The second two digits of the year. If ``yy'' is specified,
but ``cc'' is not, a value for ``yy'' between 69 and 99
results in a ``cc'' value of 19. Otherwise, a ``cc'' value
of 20 is used.
mm The month of the year, from 1 to 12.
dd The day of the month, from 1 to 31.
hh The hour of the day, from 0 to 23.

In ARD run the unix command as root.

>date 011512022008

Will set the date and time to Jan 15 , 2008 12:02 p.m.

No comments: