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

Javadoc bug in DateUtils#ceiling for Calendar and Object versions.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.1
    • 3.2
    • None
    • None

    Description

      The documentation has only been corrected for the ceiling method that takes a Date, but not for those that take a Calendar or an Object, respectively.

      For example, if you had the datetime of 28 Mar 2002
           * 13:45:01.231, if you passed with HOUR, it would return 28 Mar
           * 2002 13:00:00.000.  If this was passed with MONTH, it would
           * return 1 Mar 2002 0:00:00.000. 

      Looks like copy-paste from truncate. (the dates are incorrect)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lucianof Luciano Franceschina
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 10m
                  10m
                  Remaining:
                  Remaining Estimate - 10m
                  10m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified