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 17:12:36 UTC

DO NOT REPLY [Bug 25627] - 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





------- Additional Comments From apacheBugzilla@AMammenT.cotse.net  2003-12-18 16:12 -------
IMHO, bad reason to make the constants long.  All it takes is using any of:

System.out.println(new Date(30L * 365 * DateUtils.MILLIS_IN_DAY));
System.out.println(new Date(30 * 365L * DateUtils.MILLIS_IN_DAY));
System.out.println(new Date(30L * 365L * DateUtils.MILLIS_IN_DAY));
  or, best of all, 
System.out.println(new Date((long) 30 * 365 * DateUtils.MILLIS_IN_DAY));

-AMT

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