Add Date, Time and TimeStamp classes to java.lang
Add these classes:
Deprecate the following classes:
These new classes must be immutable. All three will have three common types of constructors as following:
- A no-arg constructor to represent the current date/time/timestamp when the object is created.
- A constructor that takes one ‘long’ argument, milliseconds since January 1, 1970, 00:00:00 GMT.
- A constructor that takes two arguments; a String, the string representation of the date/time/timestamp value, and a format object, representing the format of the value.