Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1589 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Midnight mistaken by ISO 8601 parser

Reported by: rio Assigned to: Deewiant
Priority: normal Milestone: 0.99.9
Component: Tango Version: trunk
Keywords: Cc:

Description

section "4.2.3 Midnight" of ISO8601:2004 defines that 24:00:00 on some day is the same as 00:00:00 on the next day

neither tango.time.ISO8601 (both parseDateAndTime functions) nor tango.text.convert.TimeStamp (the iso8601 function) implement this rule:
24:00:00 on some day is mistaken to be the same as 00:00:00 on the same day
(at least, the FullDate overload of parseDateAndTime indicates endOfDay)

Change History

04/12/09 17:58:46 changed by rio

  • summary changed from Midnight mistaken by both ISO 8601 parsers to Midnight mistaken by ISO 8601 parser.

sorry: no defect for tango.text.convert.TimeStamp

only tango.time.ISO8601 deviates from the midnight definition of ISO 8601

04/12/09 18:08:14 changed by larsivi

  • owner changed from kris to Deewiant.

04/13/09 04:20:07 changed by Deewiant

  • status changed from new to closed.
  • resolution set to fixed.

(In [4552]) Fix #1589: always increase the day for 24:00.