| ▲ | rjrjrjrj 11 hours ago | ||||||||||||||||||||||||||||
Good article, but “Java deprecated their Date way back in 1997” is not exactly true. They deprecated a lot of methods and constructors in JDK1.1 when Calendar was introduced, but the class itself was never deprecated and it was the preferred way to represent a point in time until the “modern” approach was provided in java.time in JDK8 (c2014) | |||||||||||||||||||||||||||||
| ▲ | shellac 11 hours ago | parent [-] | ||||||||||||||||||||||||||||
Not exactly true, but they deprecated absolutely everything that made it a date. It expresses deep regret in the medium of annotations: https://javaalmanac.io/jdk/1.2/api/java/util/Date.html (I can't find the 1.1 docs, but they were the same) It's one of my favourite examples of how languages pretty much always get date and time hopelessly wrong initially. Java now has one of the best temporal APIs. | |||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||