JexlDateFunctions implements ExpressionContextVisitor { public String currentTimeMilis() { return Long.toString(System.currentTimeMillis()); }  String currentDate(String format, String timezone); String currentDate(String format); String currentTimeMilis(); String addDays(Object odays, String format); @Override void visit(JexlContext context);  }
@Test @Tag(TestGroups.FUNCTIONAL) public void testCurrentTimeMilis() { long currentTime = System.currentTimeMillis(); String time = variables.evaluate("#{dateFunctions.currentTimeMilis()}"); assertTrue(currentTime <= Long.parseLong(time)); }