[exo-jcr-commits] exo-jcr SVN: r612 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/util.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Nov 12 11:07:40 EST 2009


Author: dkatayev
Date: 2009-11-12 11:07:40 -0500 (Thu, 12 Nov 2009)
New Revision: 612

Modified:
   jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/util/StringNumberParser.java
Log:
EXOJCR-237 syntax for seconds added

Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/util/StringNumberParser.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/util/StringNumberParser.java	2009-11-12 16:04:22 UTC (rev 611)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/util/StringNumberParser.java	2009-11-12 16:07:40 UTC (rev 612)
@@ -160,6 +160,10 @@
       {
          return Long.valueOf(text.substring(0, text.length() - 2));
       }
+      else if (text.endsWith("s"))
+      {
+         return Long.valueOf(text) * 1000;
+      }
       else if (text.endsWith("m"))
       {
          return Long.valueOf(text.substring(0, text.length() - 1)) * 60000; // 1000 * 60



More information about the exo-jcr-commits mailing list