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

Add an efficient getDateTimeMillis method to java.time

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 9
    • 9
    • core-libs
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: