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

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 latest articles
Browse All 5 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>