Make a Date with Java
summary
Shows why java.util.Date and Calendar produce surprising results (zero‑based months, 1900‑based years, implicit time and zone, millisecond granularity, not thread safe) and why migration to Java 8+ matters; demonstrates Joda‑Time history and Java 8 (2014) adoption; introduces concrete types and behaviors: Instant (nanosecond precision) for machine timestamps, LocalDate (ISO 8601, no time or zone) for dates, Duration vs Period for machine vs human intervals; explains injectable Clock, Chronology, parsing/formatting, temporal adjusters, and advises never to use java.util/java.sql Date in new code.
AI-written summary · about
chapters (17)
- 0:00Introduction to Java date APIs
- 2:29Problems with old Date class
- 8:29Introduction to Java 8 Date API
- 13:12Key time and date concepts
- 20:01Machine vs human time views
- 23:54Java Date API design principles
- 24:15Instant and partial classes
- 26:47Duration and period differences
- 28:58Time zones and clocks
- 30:44Chronologies and calendar systems
- 33:56Core classes in Java Date API
- 36:27Consistent operations in API
- 39:18Old vs new API conversion
- 41:10Formatting and parsing dates
- 43:58Temporal adjusters and queries
- 47:13Avoiding old date APIs
- 48:39Q&A and resources
related talks
15mJava 8 Date&Time benefits
39mThe Pearls and Pitfalls of DateTime
54mThreeTen (JSR 310) the new Date and Time API in Java 8
15mThe time relativity principle
27mIt's Only a Matter of Date
41mJava Made (Somewhat) Simple
42mWHY A WHOLE COUNTRY SKIPPED A DAY: FUN WITH TIMEZONES AND LOCALES
54mBack to the Future - Java 8 is here!
