Java is an excellent example of how not to do date&#x2F;time APIs (pre Java 8 anyway). My answer (from years ago):<p><a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;1969651" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;1969651</a>