01
ZeroToOneLearn. Code. Excel.
HomeLanguagesDSASystem DesignLow Level DesignRoadmapsAbout

Java Fundamentals

Progress: 225/225 chapters
Legacy Date and Time
New Date/Time API
LocalDate
LocalTime
LocalDateTime
ZonedDateTime
Instant
Period and Duration
Date/Time Formatting
Languages/Java/Date & Time API/Period and Duration

Period and Duration

Time-based amount of time

Code Examples

Period example

java
1
2Period.ofDays(10);
3          
Previous
Instant
Next
Date/Time Formatting
01
ZeroToOne

Learn. Code. Excel.

Learn

  • Languages
  • DSA
  • System Design
  • Low Level Design

Resources

  • Roadmaps
  • About

Connect

GitHub

© 2026 ZeroToOneAlgo. All rights reserved.