[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DEFVAL for DateAndTimes



Hi -

A conversation with Dave Perkins in an Australian airport uncovered
a possible problem with RFCs 2592, 2591, and 2564.

RFC 2579's description of DateAndTime says:

|           field  octets  contents                  range
|           -----  ------  --------                  -----
|             1      1-2   year*                     0..65536
|             2       3    month                     1..12
|             3       4    day                       1..31
|             4       5    hour                      0..23
|             5       6    minutes                   0..59
|             6       7    seconds                   0..60
|                          (use 60 for leap-second)
|             7       8    deci-seconds              0..9
|             8       9    direction from UTC        '+' / '-'
|             9      10    hours from UTC*           0..13
|            10      11    minutes from UTC          0..59

These other documents have DEFVALs for DateAndTime of
'0000000000000000'H.  These values would be technically
illegal, and should probably be replaced with
'0000010100000000'H  when these documents are revised.

(Alternatively, we could just recognize the existing,
though technically illegal, practice and get on with
more interesting problems.  :-)

A related annoying question:  if the time has an offset of
00:00 from UTC, would the preferred value for byte 9 be a
'+' or a '-'?

 ------------------------------------------------------------------------
 Randy Presuhn           randy_presuhn@bmc.com       http://www.bmc.com/
 Voice: +1 408 546-1006  BMC Software, Inc.  1-3141  2141 N. First Street
 Fax:   +1 408 965-0359  San Jose, California 95131  USA
 ------------------------------------------------------------------------
 Any relationship between my opinions and BMC's should be coincidental.
 ------------------------------------------------------------------------