Permalink
Browse files

Added getMillis function in jspringbot-expression

  • Loading branch information...
badong2210 committed Mar 18, 2013
1 parent 33965c2 commit 1c83cd7313515b02659f7f055960f664d5ae1b36
@@ -75,6 +75,10 @@ private static VariableProviderManager getVariables() {
return Collections.emptyList();
}
+ public static Long getMillis(String str) {
+ return System.currentTimeMillis();
+ }
+
public static String concatMillis(String name) {
return name + System.currentTimeMillis();
}
@@ -16,6 +16,11 @@
<function-class>org.jspringbot.keyword.expression.ELUtils</function-class>
<function-signature>java.lang.String convertUnicode(java.lang.String)</function-signature>
</function>
+ <function>
+ <name>getMillis</name>
+ <function-class>org.jspringbot.keyword.expression.ELUtils</function-class>
+ <function-signature>java.lang.Long getMillis(java.lang.String)</function-signature>
+ </function>
<function>
<name>concatMillis</name>
<function-class>org.jspringbot.keyword.expression.ELUtils</function-class>

0 comments on commit 1c83cd7

Please sign in to comment.