commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-486) Add (non-)lenient date parsing
Date Fri, 01 Jan 2010 17:45:54 GMT

    [ https://issues.apache.org/jira/browse/LANG-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795777#action_12795777
] 

Henri Yandell commented on LANG-486:
------------------------------------

One test from the javadoc:

"With lenient interpretation, a date such as "February 942, 1996" will be treated as being
equivalent to the 941st day after February 1, 1996. With strict interpretation, such dates
will cause an exception to be thrown. "

Better name:  parseDateStrictly

> Add (non-)lenient date parsing
> ------------------------------
>
>                 Key: LANG-486
>                 URL: https://issues.apache.org/jira/browse/LANG-486
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.time.*
>    Affects Versions: 2.4
>            Reporter: Michael Osipov
>             Fix For: 3.0
>
>         Attachments: LANG-486.patch
>
>
> I use a lot the DateUtils#parseDate method and it's very handy. It lacks leniency handling.
I patched a solution against 2.4

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message