You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/12/18 16:09:52 UTC

DO NOT REPLY [Bug 25627] New: - DateUtils constants should be long

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25627>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25627

DateUtils constants should be long

           Summary: DateUtils constants should be long
           Product: Commons
           Version: 2.0 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: N.Metchev@teamphone.com


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!

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org