java.time.LocalDateTime vs. Instant
LocalDateTime
- represents a date & time locally
- year, month, day, hour, minute, second, nanosecond
- useful for time in local context
Instant
- represents instantaneous point in time
- measured in seconds since Unix epoch
- regardless of time zone/location