Package com.salesforce.phoenix.expression.function

Examples of com.salesforce.phoenix.expression.function.ToDateFunction


            dateFormat = context.getDateFormat();
            dateParser = context.getDateParser();
        } else {
            dateParser = DateUtil.getDateParser(dateFormat);
        }
        return new ToDateFunction(children, dateFormat, dateParser);
    }
View Full Code Here


    }
   
    @Test
    public void toDate() throws Exception {
        List<Expression> args = Lists.newArrayList(getInvertedLiteral("2001-11-30 00:00:00:0", PDataType.VARCHAR));
        evaluateAndAssertResult(new ToDateFunction(args, null, DateUtil.getDateParser("yyyy-MM-dd HH:mm:ss:S")), date(11, 30, 2001));
    }
View Full Code Here

TOP

Related Classes of com.salesforce.phoenix.expression.function.ToDateFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.