private static ReformatOp ToMsec = new ReformatOpToMillisec();
private static ReformatOp ToDate = new ReformatOpToDate();
public ReformatOp getOp(DatetimeMethodEnum method, String methodNameUsed, List<ExprNode> parameters) throws ExprValidationException {
if (method == DatetimeMethodEnum.GET) {
CalendarFieldEnum fieldNum = CalendarOpUtil.getEnum(methodNameUsed, parameters.get(0));
return new ReformatOpGetField(fieldNum);
}
if (method == DatetimeMethodEnum.FORMAT) {
return FormatString;
}