Registry / utility / threeten-extra

threeten-extra

JSON →
library1.9.0javamavenunverified

Additional date-time classes that extend the JSR-310 (java.time) API, such as intervals, periods, and additional calendars.

<dependency> <groupId>org.threeten</groupId> <artifactId>threeten-extra</artifactId> <version>1.9.0</version> </dependency>
INSTALL
IMPORT
SIG · THREETEN-EXTRA
T
threeten-extra
utilityjavav1.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Interval
org.threeten.extra.Interval

Create a time interval between two instants.

import org.threeten.extra.Interval; import java.time.Instant; Interval interval = Interval.of(Instant.parse("2023-01-01T00:00:00Z"), Instant.parse("2023-12-31T23:59:59Z")); System.out.println("Interval: " + interval);
Debug
Known issues
gotchaThreeTen-Extra requires Java 8 or later; some classes may have different behavior than Joda-Time.
fix
Migrate from Joda-Time by replacing org.joda.time with java.time and org.threeten.extra equivalents.
affects: *
Upgrade
Version history
1.9.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
threeten-extra — mvn dependency:get threeten-extra · libregistry