You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2017/04/22 12:19:04 UTC

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

     [ https://issues.apache.org/jira/browse/LANG-65?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pascal Schumacher closed LANG-65.
---------------------------------
    Resolution: Fixed

As discussed on the mailing list, we won't add new features related to java.util.Date. See [https://mail-archives.apache.org/mod_mbox/commons-dev/201704.mbox/%3Cac296ba2-c9ef-2d6f-271e-d4699690581d%40gmx.net%3E] for details.



> [lang] Expose DateIterator or add DateUtils.iterator(startDate, endDate)
> ------------------------------------------------------------------------
>
>                 Key: LANG-65
>                 URL: https://issues.apache.org/jira/browse/LANG-65
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.time.*
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Ben Munat
>
> 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 was sent by Atlassian JIRA
(v6.3.15#6346)