Java
Formatting, Parsing and Time Zones in Java
DateTimeFormatter converts between text and date time values, and ZoneId handles the region rules that make time zones difficult.
The java.time API.
3 notes tagged
DateTimeFormatter converts between text and date time values, and ZoneId handles the region rules that make time zones difficult.
Instant marks a point on the timeline; Duration measures time based amounts and Period measures date based ones.
The modern date and time API is immutable, thread safe and clearly named, and it replaced the older Date and Calendar classes entirely.