create AtTime as enumerated and remove timeDefinition