commons-dev 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-65) [lang] Expose DateIterator or add DateUtils.iterator(startDate, endDate)
Date Mon, 05 Jun 2006 19:42:30 GMT
    [ 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


Mime
View raw message