home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / daytime.zip / rfc868 < prev   
Text File  |  1994-04-12  |  3KB  |  119 lines

  1.  
  2.  
  3.  
  4. Network Working Group                                    J. Postel - ISI
  5. Request for Comments: 868                           K. Harrenstien - SRI
  6.                                                                 May 1983
  7.  
  8.  
  9.  
  10.                              Time Protocol
  11.  
  12.  
  13.  
  14.  
  15. This RFC specifies a standard for the ARPA Internet community.  Hosts on
  16. the ARPA Internet that choose to implement a Time Protocol are expected
  17. to adopt and implement this standard.
  18.  
  19. This protocol provides a site-independent, machine readable date and
  20. time.  The Time service sends back to the originating source the time in
  21. seconds since midnight on January first 1900.
  22.  
  23. One motivation arises from the fact that not all systems have a
  24. date/time clock, and all are subject to occasional human or machine
  25. error.  The use of time-servers makes it possible to quickly confirm or
  26. correct a system's idea of the time, by making a brief poll of several
  27. independent sites on the network.
  28.  
  29. This protocol may be used either above the Transmission Control Protocol
  30. (TCP) or above the User Datagram Protocol (UDP).
  31.  
  32. When used via TCP the time service works as follows:
  33.  
  34.    S: Listen on port 37 (45 octal).
  35.  
  36.    U: Connect to port 37.
  37.  
  38.    S: Send the time as a 32 bit binary number.
  39.  
  40.    U: Receive the time.
  41.  
  42.    U: Close the connection.
  43.  
  44.    S: Close the connection.
  45.  
  46.    The server listens for a connection on port 37.  When the connection
  47.    is established, the server returns a 32-bit time value and closes the
  48.    connection.  If the server is unable to determine the time at its
  49.    site, it should either refuse the connection or close it without
  50.    sending anything.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. Postel                                                          [Page 1]
  59.  
  60.  
  61.  
  62. RFC 868                                                         May 1983
  63. Time Protocol
  64.  
  65.  
  66. When used via UDP the time service works as follows:
  67.  
  68.    S: Listen on port 37 (45 octal).
  69.  
  70.    U: Send an empty datagram to port 37.
  71.  
  72.    S: Receive the empty datagram.
  73.  
  74.    S: Send a datagram containing the time as a 32 bit binary number.
  75.  
  76.    U: Receive the time datagram.
  77.  
  78.    The server listens for a datagram on port 37.  When a datagram
  79.    arrives, the server returns a datagram containing the 32-bit time
  80.    value.  If the server is unable to determine the time at its site, it
  81.    should discard the arriving datagram and make no reply.
  82.  
  83. The Time
  84.  
  85. The time is the number of seconds since 00:00 (midnight) 1 January 1900
  86. GMT, such that the time 1 is 12:00:01 am on 1 January 1900 GMT; this
  87. base will serve until the year 2036.
  88.  
  89. For example:
  90.  
  91.    the time  2,208,988,800 corresponds to 00:00  1 Jan 1970 GMT,
  92.  
  93.              2,398,291,200 corresponds to 00:00  1 Jan 1976 GMT,
  94.  
  95.              2,524,521,600 corresponds to 00:00  1 Jan 1980 GMT,
  96.  
  97.              2,629,584,000 corresponds to 00:00  1 May 1983 GMT,
  98.  
  99.         and -1,297,728,000 corresponds to 00:00 17 Nov 1858 GMT.
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116. Postel                                                          [Page 2]
  117.  
  118.  
  119.