Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b115

      Description

      Classes like `LocalTime` and `Instant` have a method `truncatedTo(TemporalUnit unit)` that returns an instance with smaller units set to zero. A similar method should be added to `Duration`. Without this method, the user is forced to perform maths on the epoch-second or nano-of-second value, which is what java.time seeks to avoid.

      The specification and implementation would be very similar to that on `Instant`.

        Activity

        scolebourne Stephen Colebourne created issue -
        rpatil Ramanand Patil made changes -
        Field Original Value New Value
        Assignee Ramanand Patil [ rpatil ]
        rpatil Ramanand Patil made changes -
        Status New [ 10000 ] Open [ 1 ]
        ntv Nadeesh Tv (Inactive) made changes -
        Assignee Ramanand Patil [ rpatil ] Nadeesh Tv [ ntv ]
        ntv Nadeesh Tv (Inactive) made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Understanding Fix Understood [ 10001 ]
        evotchen Elena Votchennikova (Inactive) made changes -
        Link This issue relates to JCK-7306231 [ JCK-7306231 ]
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/502aa22b0e33
        User: ntv
        Date: 2016-04-13 10:42:13 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/502aa22b0e33 User: ntv Date: 2016-04-13 10:42:13 +0000
        hgupdate HG Updates made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolved In Build team [ 17324 ]
        Understanding Fix Understood [ 10001 ]
        Fix Version/s 9 [ 14949 ]
        Resolution Fixed [ 1 ]
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/502aa22b0e33
        User: lana
        Date: 2016-04-20 17:52:51 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/502aa22b0e33 User: lana Date: 2016-04-20 17:52:51 +0000
        hgupdate HG Updates made changes -
        Resolved In Build team [ 17324 ] master [ 18256 ]
        hgupdate HG Updates made changes -
        Resolved In Build master [ 18256 ] b115 [ 17495 ]
        iris Iris Clark made changes -
        Labels jsr379-annex2-tbd
        iris Iris Clark made changes -
        Labels jsr379-annex2-tbd jsr379-annex1
        darcy Joe Darcy made changes -
        Link This issue csr of CCC-8148849 [ CCC-8148849 ]

          People

          • Assignee:
            ntv Nadeesh Tv (Inactive)
            Reporter:
            scolebourne Stephen Colebourne
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: