[threeten-dev] Non-webrev: Part one of better date parsing
Stephen Colebourne
scolebourne at joda.org
Tue Mar 5 06:05:03 PST 2013
This patch is needed to fix Japanese era parsing and allow day-of-year
to change its meaning (if that is so decided). Can it be pushed?
Stephen
On 27 February 2013 22:11, Stephen Colebourne <scolebourne at joda.org> wrote:
> I envisage a boolean flag indicating strict/lenient, passed to
> TemporalField and Chronology.
>
> I don't think that affects this patch, which is simply locating the
> builder code in the right location - ChronoField is by definition
> meaningless without the chronology, so thats where the logic has to
> sit.
>
> Stephen
>
>
> On 27 February 2013 19:06, roger riggs <roger.riggs at oracle.com> wrote:
>> Hi Stephen,
>>
>> To extend it will require that the semantics of various leniency levels
>> would be
>> propagated to the Chronology. It would be better if the leniency
>> concepts can be self contained in the parser. In related cases, the
>> dates are corrected to the "previous valid" date.
>>
>> Roger
>>
>>
>> On 2/27/2013 11:37 AM, Stephen Colebourne wrote:
>>>
>>> Issue: #268
>>> Patch: https://gist.github.com/jodastephen/5049319
>>>
>>> This can then be extended to "fix" the stricter Japanese era
>>> requirements, and add lenient/strict resolving in general.
>>>
>>> Stephen
>>
>>
More information about the threeten-dev
mailing list