Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-123

[lang] Unclear javadoc for DateUtils.iterator()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.2
    • None
    • None
    • Operating System: All
      Platform: All

    • 33609

    Description

      The javadoc for DateUtils.iterator() seems to say that the iterator returned
      will only have two dates: the start date and the end date. If it iterates over
      more dates, which interval is use: hour, day, week or something else?

      "For instance, passing Thursday, July 4, 2002 and a RANGE_MONTH_SUNDAY will
      return an Iterator that starting with Sunday, June 30, 2002 iterates over every
      day (at midnight) until with Saturday, August 3, 2002."

      Also the Date version of the method does not say that the iterator returns
      Calendar and not Date as I would have expected given the method signature.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hack Hack Kampbjorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m