Commons Lang
  1. Commons Lang
  2. LANG-800

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.2
    • Component/s: None
    • Labels:
      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)

        Issue Links

          Activity

          Hide
          Gary Gregory added a comment -

          In SVN.

          Show
          Gary Gregory added a comment - In SVN.

            People

            • Assignee:
              Unassigned
              Reporter:
              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

                  Development