Class NowFunction
- java.lang.Object
-
- org.pentaho.reporting.libraries.formula.function.datetime.NowFunction
-
- All Implemented Interfaces:
Serializable
,Function
public class NowFunction extends Object implements Function
Return the serial number of the current date and time. This returns the current day and time serial number, using the current locale. If you want only the serial number of the current day, use TODAY.- Since:
- 23.03.2007
- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NowFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeValuePair
evaluate(FormulaContext context, ParameterCallback parameters)
String
getCanonicalName()
-
-
-
Method Detail
-
getCanonicalName
public String getCanonicalName()
- Specified by:
getCanonicalName
in interfaceFunction
-
evaluate
public TypeValuePair evaluate(FormulaContext context, ParameterCallback parameters) throws EvaluationException
- Specified by:
evaluate
in interfaceFunction
- Throws:
EvaluationException
-
-