About 4,420,000 results
Open links in new tab
  1. Duration (Java Platform SE 8 ) - Oracle

    The range of a duration requires the storage of a number larger than a long. To achieve this, the class stores a long representing seconds and an int representing nanosecond-of-second, which will always …

  2. java.time.Duration Class in Java - GeeksforGeeks

    Jan 24, 2022 · Duration is the value-based Class present in the Java time library. It's used to get time-based amount of time. This class is immutable and thread-safe. This article describes all the …

  3. Period and Duration in Java - Baeldung

    May 11, 2024 · Learn what is the difference between Duration and Period classes in Java.

  4. java.time.Duration Class - Online Tutorials Library

    The java.time.Duration class models a quantity or amount of time in terms of seconds and nanoseconds. It can be accessed using other duration-based units, such as minutes and hours.

  5. Duration (Java SE 17 & JDK 17) - Oracle

    The range of a duration requires the storage of a number larger than a long. To achieve this, the class stores a long representing seconds and an int representing nanosecond-of-second, which will always …

  6. Duration (Java Platform SE 8 ) - Oracle

    クラスDuration java.lang.Object java.time.Duration すべての実装されたインタフェース: Serializable 、 Comparable <Duration>、 TemporalAmount public final class Duration extends Object implements …

  7. java.time.Duration Tutorial with Examples - Dariawan

    Aug 29, 2019 · Java → java.time.Duration Tutorial with Examples Duration class represents a time-based amount of time between two Instant objects, such as '25.5 seconds'. Duration class stores a …

  8. Duration and Period in Java's Date and Time API - Medium

    Dec 21, 2024 · Duration and Period in Java's Date and Time API The java.time package was introduced in Java 8 to provide an immutable and thread-safe way to handle dates and times.

  9. Period and Duration (The Java™ Tutorials > Date Time - Oracle

    Period and Duration When you write code to specify an amount of time, use the class or method that best meets your needs: the Duration class, Period class, or the ChronoUnit.between method. A …

  10. Difference Between Two Dates in Java - Baeldung

    May 8, 2025 · Using java.time.Duration and java.time.Period In Java 8, the Time API introduced two new classes: Duration and Period. If we want to calculate the difference between two date-times in a …