The authoritative answer to a question on Stack Overflow on the difference between Instant and LocalDateTime covers various classes from the Java 8 Date/Time API and how those are actually meant to be used. Names such as LocalDateTime can be misleading in that they suggest a specific locale or locality rather than any locality (as that name is intended). This, in turn, can give rise to problems with inaccurate date and time values if timezones or even just daylight saving time have ... Read more
I'm currently working on an app that allows you to set and display dates and times in various ways. Hence, lately I've been working quite a bit with calendars, dates, times, date localization and all the funny intricacies that come with them. To name but a few of those: In some countries the week customarily starts with Sunday, while in others it starts with Monday.
Some programming languages and date APIs use 0 as the index for the first day of the week, some ... Read more