4 rdate \- get the date and time via the network
7 [\-p] [\-s] [\-u] [host...]
10 uses TCP or UDP to retrieve the current time of another machine using
11 using the protocol described in RFC 868.
12 The time for each system is returned in
13 ctime(3) format. The following is an example:
17 [uci] Sun Mar 24 20:35:41 1985
18 [mc] Sun Mar 24 20:36:19 1985
23 Print the time retrieved from the remote machines. This is the default
27 Set the local system time from the time retrieved from the remote
28 machine. This, quite naturally, is only effective for root.
31 Use UDP to retrieve the time instead of TCP.
32 The client will timeout if no reply is received within 5 seconds.
35 /etc/services map service name to socket number
36 /etc/hosts map host name to internet address
40 24-Mar-85 Lee Moore at University of Rochester
43 10-Oct-94 Andy Tefft <teffta@crypt.erie.ge.com>
44 Updated for Linux 1.1.52. Set system time when run as root.
46 23-Sep-96 Richard Henderson <rth@tamu.edu>
47 Fixed 32-bit assumptions and added mode options.
49 04-May-99 Ken Yap <ken.yap@acm.org>
50 Added code to use UDP.
52 Timeout handling on UDP doesn't work after the first server.
53 Something to do with signal(2) semantics I don't understand.