Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8030864

Add an efficient getDateTimeMillis method to java.time

    XMLWordPrintable

    Details

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

      Description

      Add an efficient/fast/garbage free getDateTimeMillis method.

      That converts to epoch time without creating garbage. There doesn't seem to be an equivalent garbage free method on the new API, and this looks like an oversight.

      Conversion to epoch is important and doing it efficiently was a core reason many where using JodaTime. It would be a shame to lose it.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ntv Nadeesh Tv
              Reporter:
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: