Class DateTimeNowFunction

  • All Implemented Interfaces:
    FunctionIfc

    public class DateTimeNowFunction
    extends AbstractFunction
    Produces a new DATE_TIME that represents the current date and time.

    It is useful to calculate a value based on the current date and time. For example, if you know the start DATE_TIME of a running process, you might use the following expression to find the DURATION that represents the process age:

    DT_NOW() - startDateTime
    Author:
    oswaldobapvicjr
    • Constructor Detail

      • DateTimeNowFunction

        public DateTimeNowFunction()
    • Method Detail

      • evaluate

        public EvaluationValue evaluate​(Expression expression,
                                        Token functionToken,
                                        EvaluationValue... parameterValues)
        Description copied from interface: FunctionIfc
        Performs the function logic and returns an evaluation result.
        Parameters:
        expression - The expression, where this function is executed. Can be used to access the expression configuration.
        functionToken - The function token from the parsed expression.
        parameterValues - The parameter values.
        Returns:
        The evaluation result in form of a EvaluationValue.