Quantcast
Channel: What's the difference between ZonedDateTime and OffsetDateTime? - Stack Overflow
Browsing all 5 articles
Browse latest View live

Answer by Stephen C for What's the difference between java 8 ZonedDateTime...

Q: What's the difference between java 8 ZonedDateTime and OffsetDateTime? The javadocs say this: "OffsetDateTime, ZonedDateTime and Instant all store an instant on the time-line to nanosecond...

View Article


What's the difference between java 8 ZonedDateTime and OffsetDateTime?

I've read the documentation, but I still can't get when I should use one or the other: OffsetDateTime ZonedDateTime According to documentation OffsetDateTime should be used when writing date to...

View Article

Answer by Stephen C for What's the difference between ZonedDateTime and...

Q: What's the difference between java 8 ZonedDateTime and OffsetDateTime?The javadocs say this:"OffsetDateTime, ZonedDateTime and Instant all store an instant on the time-line to nanosecond precision....

View Article

What's the difference between ZonedDateTime and OffsetDateTime?

I've read the documentation, but I still can't get when I should use one or the other: OffsetDateTimeZonedDateTimeAccording to documentation OffsetDateTime should be used when writing date to database,...

View Article

Answer by Sam YC for What's the difference between ZonedDateTime and...

The accepted answer give very completed explanation, perhaps below code example can provide you short and clear picture:Instant instant = Instant.now();Clock clock = Clock.fixed(instant,...

View Article

Browsing all 5 articles
Browse latest View live