Class DateTimeNewFunction

  • All Implemented Interfaces:
    FunctionIfc

    @FunctionParameter(name="values",
                       isVarArg=true,
                       nonNegative=true)
    public class DateTimeNewFunction
    extends AbstractFunction
    Creates a new DATE_TIME value with the given parameters. If only one parameter is given, it is treated as the time in milliseconds from the epoch of 1970-01-01T00:00:00Z and a corresponding date/time value is created. Else, A minimum of three parameters (year, month, day) must be specified. Optionally the hour, minute, second and nanosecond can be specified. If the last parameter is a string value, it is treated as a zone ID. If no zone ID is specified, the configured zone ID is used.