You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@empire-db.apache.org by fr...@apache.org on 2013/07/29 12:05:41 UTC
svn commit: r1507991 -
/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/DateUtils.java
Author: francisdb
Date: Mon Jul 29 10:05:41 2013
New Revision: 1507991
URL: http://svn.apache.org/r1507991
Log:
fix EMPIREDB-187 - DateUtilsTest fails on specific dates + code it is testing is not used (cleanup)
Modified:
empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/DateUtils.java
Modified: empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/DateUtils.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/DateUtils.java?rev=1507991&r1=1507990&r2=1507991&view=diff
==============================================================================
--- empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/DateUtils.java (original)
+++ empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/DateUtils.java Mon Jul 29 10:05:41 2013
@@ -218,24 +218,4 @@ public class DateUtils
c.setTime(d);
return sdf.format(d);
}
-
-
- /**
- * returns a date relative from the current date.
- * <P>
- * @param withTime true if the current time should be added or false if only the date is desired.
- * @return the target date
- */
- private static Date getDateTimeFromNow(boolean withTime)
- {
- Calendar calendar = Calendar.getInstance();
- if (withTime==false)
- {
- calendar.set(Calendar.HOUR_OF_DAY, 0);
- calendar.set(Calendar.MINUTE, 0);
- calendar.set(Calendar.SECOND, 0);
- calendar.set(Calendar.MILLISECOND, 0);
- }
- return calendar.getTime();
- }
}