[Schmitzm-commits] r2138 - trunk/schmitzm-core/src/main/java/de/schmitzm/lang
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Sun Nov 11 20:42:30 CET 2012
Author: alfonx
Date: 2012-11-11 20:42:30 +0100 (Sun, 11 Nov 2012)
New Revision: 2138
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
Log:
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java 2012-11-11 17:08:09 UTC (rev 2137)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java 2012-11-11 19:42:30 UTC (rev 2138)
@@ -458,8 +458,8 @@
* days to increase the date with
* @return a new {@link Date} instance
*/
- public static Date incDays(Date date, int days) {
- return incDate(date, days * DAY_MILLIS);
+ public static Date incDays(Date date, double days) {
+ return incDate(date, (long) (days * DAY_MILLIS));
}
/**
@@ -471,7 +471,7 @@
* days to decrease the date with
* @return a new {@link Date} instance
*/
- public static Date decDays(Date date, int days) {
+ public static Date decDays(Date date, double days) {
return incDays(date, -days);
}
More information about the Schmitzm-commits
mailing list