ThreeTen (JSR 310) the new Date and Time API in Java 8
summary
JSR 310 / ThreeTen is a Joda Time–based Date/Time API for Java 8 that splits time into a machine model (Instant, Duration) and a human model (LocalDate, LocalTime, ZonedDateTime), adds a Clock abstraction for testable current time, and fixes DST and leap-year edge cases (e.g. adding one month from Jan 31 yields Feb 28). Examples show converting OffsetDateTime to Instant for precise arithmetic, constructing fixed Clocks for tests, and the recommendation to use Joda now and migrate to ThreeTen/Java 8.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 3:58Problems with Java date APIs
- 10:05Joda Time creation limits
- 21:46ThreeTen design
- 23:13Machine vs human time
- 34:07Core classes with examples
- 43:22Clocks for testing
- 45:56Date arithmetic edge cases
- 50:29Time zone transitions
- 52:15ThreeTen status future
related talks
52mMake a Date with Java
15mJava 8 Date&Time benefits
27mIt's Only a Matter of Date
15mThe time relativity principle
39mThe Pearls and Pitfalls of DateTime
42mWHY A WHOLE COUNTRY SKIPPED A DAY: FUN WITH TIMEZONES AND LOCALES
54mBack to the Future - Java 8 is here!
01h 48mJava 5, 6, 7, 8, 9, 10, 11: What Did You Miss?
