Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0
-
None
-
None
-
Operating System: other
Platform: Other
-
25627
Description
The fields
MILLIS_IN_SECOND ,MILLIS_IN_MINUTE ,MILLIS_IN_HOUR,MILLIS_IN_DAY
should be of type long so that if you have an expression:
System.out.println(new Date(30 * 365 * DateUtils.MILLIS_IN_DAY));
it doesn't print out as
Wed Jan 14 18:46:34 GMT 1970
due to overflow of integer!