(Tuple input)
| 31 | public class ToDateISO extends EvalFunc<DateTime> { |
| 32 | |
| 33 | public DateTime exec(Tuple input) throws IOException { |
| 34 | if (input == null || input.size() < 1 || input.get(0) == null) { |
| 35 | return null; |
| 36 | } |
| 37 | String dtStr = DataType.toString(input.get(0)); |
| 38 | return ToDate.extractDateTime(dtStr); |
| 39 | } |
| 40 | |
| 41 | @Override |
| 42 | public boolean allowCompileTimeCalculation() { |