Different rotation ranges for editor and FVector::Rotator() ?

Why does FVector::Rotator() return Yaw rotation in the 0 to ±180 but in the editor I can edit the Transform Rotation of an object in the 0 to 360 ?
Which interval is the correct one when moving objects ?