Class DateTimeParseFunction

  • All Implemented Interfaces:
    FunctionIfc

    @FunctionParameter(name="parameters",
                       isVarArg=true)
    public class DateTimeParseFunction
    extends AbstractFunction
    Parses a date-time string to a EvaluationValue.DataType.DATE_TIME value.

    Optional arguments is the time zone and a list of DateTimeFormatter patterns. Each pattern will be tried to convert the string to a date-time. The first matching pattern will be used. If NULL is specified for the time zone, the currently configured zone is used. If no formatters a

    • Constructor Detail

      • DateTimeParseFunction

        public DateTimeParseFunction()
    • Method Detail

      • evaluate

        public EvaluationValue evaluate​(Expression expression,
                                        Token functionToken,
                                        EvaluationValue... parameterValues)
                                 throws EvaluationException
        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.
        Throws:
        EvaluationException - In case there were problems during evaluation.