Falsehoods Programmers Believe About Time (2012)
My experience is that for most applications, programmers really only need to understand 3 types:<p>1. An instant in time - often represented as an integer number of milliseconds since January 1, 1970.<p>2. A date in the Gregorian calendar. This could also be an integer offset from a particular day, but it&#x27;s better to encapsulate it in a class that allows you to add days or months, get the number of days between two dates, etc.<p>3. A timezone which is necessary to convert between the two types mentioned above.<p>Java has default classes to represent Types 1 and 3, but is missing a simple class for Type 2. So I designed one myself: <a href="http:&#x2F;&#x2F;calendardate.sourceforge.net" rel="nofollow">http:&#x2F;&#x2F;calendardate.sourceforge.net</a>