[JDEV] Message timestamps

Eric Bowersox ebowersox at corp.webb.net
Mon Oct 4 13:24:22 CDT 1999


> IMHO, it would be a great, optional thing to have, but the 
> format should stick 
> to the timestamp definitions that are part of RFC821.

Ah, but the timestamp definitions in your snippet are not Y2K-compliant.
See the following sub-snippets (is that even a word?) from your snippet
below:

>             <yy> ::= the two decimal integer year of the 
                           ^^^^^^^^^^^^^^^^^^^^^^^^
> century in the
>                       range 00 to 99.
                              ^^^^^^^^

>                         Time Stamp Line Example
>       Received: FROM ABC.ARPA BY XYZ.ARPA ; 22 OCT 81 09:23:59 PDT
                                                     ^^
>          Received: from ABC.ARPA by XYZ.ARPA via TELENET with X25
>                    id M12345 for Smith at PDQ.ARPA ; 22 OCT 81
                                                           ^^ 
> 09:23:59 PDT

Besides being Y2K compliant, the ISO 8601 format that I used for my example
does not depend on the use of whitespace to separate fields, yet is still
human-readable because of the fixed field layout and the literal 'T' used to
separate the date and time.  I borrowed the format from the XML-RPC spec,
where it is used to pass arguments of "date-and-time" type.  (And, yes, as
someone else has already noted, this format is not Y10K-compliant...however,
*I* won't have to worry about a solution for that :-). )

					Eric




More information about the JDev mailing list