RFC: date parser rewrite
From: mark benedetto king <mbk_at_lowlatency.com>
Date: 2003-12-14 20:37:57 CET
The exiting bison-based date-parser suffers from several deficiencies,
1.) it is bison-based, which complicates the build and release processes,
If we are to replace it, we must do so before 1.0 so that its replacement
I propose the following implementation strategy (this is loosely based
The current local time and current UTC time must be passed to the date
Take the first match amongst:
1.) the following ISO 8601 extended date-time formats:
YYYY-MM-DDThh:mm:ss.sTZI
Where "TZI" stands for "Time Zone Indicator", and can be one of:
Z
2.) the following ISO 8601 basic date-time formats:
YYYYMMDDThhmmss.sTZI
Where "TZI" stands for "Time Zone Indicator", and can be one of:
Z
3.) the following formats, which will be adjusted to UTC from local time.
YYYY-MM-DD HH:MI:SS
4.) the following formats, which are presumed to reference midnight
YYYY-MM-DD
5.) the following formats, which are presumed to reference local time
HH:MI:SS
I believe that these formats are necessary and sufficient for the 1.0
Note: the existing book references several date formats that are
--ben
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.