Why is the Java date API (java.util.Date, .Calendar) such a mess?

前端 未结 4 1197
南笙
南笙 2020-11-21 21:58

As most people are painfully aware of by now, the Java API for handling calendar dates (specifically the classes java.util.Date and java.util.Calendar

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-21 22:56

    You might find the following post interesting. It pretty much explains how the Calendar class got into the Java API in the first place, and sheds some light on the origins of the date class.

    The Seven Habits of Highly Dysfunctional Design

提交回复
热议问题