class TimeOperation implements EventOperation {

  @Override
  public InternalEvent perform(InternalEvent ievent) {
    String field;
    try {
      field = ievent.getEventObj().getFieldAsString(timeField);
    } catch (FieldNotFoundException e) {
      throw new OperationException(
          "time field " + timeField + " does not exist in " + ievent.getEventString());
    }

    ievent.setEventTime(getTimestamp(field, timeFieldType));

    return ievent;
  }

  public  TimeOperation(String timeField, TimeFieldType timeFieldType);

}