}
public static ESBase getTimestamp(ResultSet rs, Call call, int len)
throws Throwable
{
ESBase col = call.getArg(0, len);
ESBase key = col.toPrimitive();
java.util.Date date;
if (key.isString())
date = rs.getTimestamp(key.toString());
else
date = rs.getTimestamp((int) key.toNum());
return call.createDate(date.getTime());
}