rdate connects to an RFC 868 time server over a TCP/IP network, printing the returned time and/or setting the system clock.

A time protocol server is built into most inetd implementations.

This version uses protocol indenpendent socket code - so will work for IPv4 and IPv6 hosts, but may not compile on older systems.

This version of rdate and is based on the sources from Elliot Lee and is released under the GNU Public Licence - see COPYING for details.


Usage: rdate [-s] [-p] [-u] [-l] [-t sec] [-a] <host> ...

   -s    Set the system time to the returned time.
   -p    Print the time returned by the remote machine.
   -u    Use UDP instead of TCP as the transport.
   -l    Use syslog to output errors.
   -t    Set timeout in seconds for every attempt to retreive date.
   -a    Adjust time gradually, rather than in a big jump.


Valid XHTML 1.1! Nicholas J Humfrey <njh@aelius.com>