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

  1.  
  2.  
  3. Network Working Group                                          J. Postel
  4. Request for Comments: 867                                            ISI
  5.                                                                 May 1983
  6.  
  7.  
  8.  
  9.                             Daytime Protocol
  10.  
  11.  
  12.  
  13.  
  14. This RFC specifies a standard for the ARPA Internet community.  Hosts on
  15. the ARPA Internet that choose to implement a Daytime Protocol are
  16. expected to adopt and implement this standard.
  17.  
  18. A useful debugging and measurement tool is a daytime service.  A daytime
  19. service simply sends a the current date and time as a character string
  20. without regard to the input.
  21.  
  22. TCP Based Daytime Service
  23.  
  24.    One daytime service is defined as a connection based application on
  25.    TCP.  A server listens for TCP connections on TCP port 13.  Once a
  26.    connection is established the current date and time is sent out the
  27.    connection as a ascii character string (and any data received is
  28.    thrown away).  The service closes the connection after sending the
  29.    quote.
  30.  
  31. UDP Based Daytime Service
  32.  
  33.    Another daytime service service is defined as a datagram based
  34.    application on UDP.  A server listens for UDP datagrams on UDP port
  35.    13.  When a datagram is received, an answering datagram is sent
  36.    containing the current date and time as a ASCII character string (the
  37.    data in the received datagram is ignored).
  38.  
  39. Daytime Syntax
  40.  
  41.    There is no specific syntax for the daytime.  It is recommended that
  42.    it be limited to the ASCII printing characters, space, carriage
  43.    return, and line feed.  The daytime should be just one line.
  44.  
  45.       One popular syntax is:
  46.  
  47.          Weekday, Month Day, Year Time-Zone
  48.  
  49.          Example:
  50.  
  51.             Tuesday, February 22, 1982 17:37:43-PST
  52.  
  53.  
  54.  
  55.  
  56.  
  57. Postel                                                          [Page 1]
  58.  
  59.  
  60.  
  61. RFC 867                                                         May 1983
  62. Daytime Protocol
  63.  
  64.  
  65.       Another popular syntax is that used in SMTP:
  66.  
  67.          dd mmm yy hh:mm:ss zzz
  68.  
  69.          Example:
  70.  
  71.             02 FEB 82 07:59:01 PST
  72.  
  73. NOTE:  For machine useful time use the Time Protocol (RFC-868).
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115. Postel                                                          [Page 2]
  116.  
  117.