org.jfree.formula.function.datetime

Class NowFunction

Implemented Interfaces:
Function, Serializable

public class NowFunction
extends java.lang.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.
Author:
Thomas Morgner
Since:
23.03.2007

Constructor Summary

NowFunction()

Method Summary

TypeValuePair
evaluate(FormulaContext context, ParameterCallback parameters)
String
getCanonicalName()

Constructor Details

NowFunction

public NowFunction()

Method Details

evaluate

public TypeValuePair evaluate(FormulaContext context,
                              ParameterCallback parameters)
            throws EvaluationException
Specified by:
evaluate in interface Function

getCanonicalName

public String getCanonicalName()
Specified by:
getCanonicalName in interface Function