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

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          6d 7h 46m 1 Gary Gregory 24/Apr/12 13:56
          Resolved Resolved Closed Closed
          119d 20h 28m 1 Henri Yandell 22/Aug/12 10:25
          Henri Yandell made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gary Gregory made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 3.2 [ 12317952 ]
          Resolution Fixed [ 1 ]
          Hide
          Gary Gregory added a comment -

          In SVN.

          Show
          Gary Gregory added a comment - In SVN.
          Gary Gregory made changes -
          Summary CLONE - Doc bug in DateUtils#ceiling Javadoc bug in DateUtils#ceiling for Calendar and Object versions.
          Luciano Franceschina made changes -
          Affects Version/s 3.1 [ 12317550 ]
          Affects Version/s 2.5 [ 12314743 ]
          Description {quote}{noformat}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. {noformat}{quote}

          Looks like copy-paste from truncate. (the dates are incorrect)
          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.

          {quote}{noformat}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. {noformat}{quote}

          Looks like copy-paste from truncate. (the dates are incorrect)
          Fix Version/s 3.0 [ 12311714 ]
          Luciano Franceschina made changes -
          Field Original Value New Value
          Link This issue is a clone of LANG-672 [ LANG-672 ]
          Luciano Franceschina created issue -

            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