You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2006/06/05 21:42:30 UTC

[jira] Commented: (LANG-65) [lang] Expose DateIterator or add DateUtils.iterator(startDate, endDate)

    [ http://issues.apache.org/jira/browse/LANG-65?page=comments#action_12414833 ] 

Henri Yandell commented on LANG-65:
-----------------------------------

Generally we're avoiding adding too much as as you get deeper into the java.time stuff you quickly start wanting to rewrite the whole thing.

Given that Stephen's already done that with JODA Time, better for us to just encourage people to use that.

So the idea dropping the iterator in 3.0 would be in the interest of keeping our time functionality to a minimum.


> [lang] Expose DateIterator or add DateUtils.iterator(startDate, endDate)
> ------------------------------------------------------------------------
>
>          Key: LANG-65
>          URL: http://issues.apache.org/jira/browse/LANG-65
>      Project: Commons Lang
>         Type: Bug

>  Environment: Operating System: other
> Platform: Other
>     Reporter: Ben Munat
>      Fix For: 2.2

>
> The DateUtils.iterator methods only work with the preset date ranges indicated
> by constants in the class. It would be very useful to be able to iterate through
> each day between a user-specified start date and an end date. 
> This could be as simple as making the static DateIterator inner class of
> DateUtils public (it's package protected now). Or, if that's not appealing for
> some reason, another iterator method could be added that takes the start date
> and end date and returns a DateIterator instance as Iterator.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org