Convert periods and instants to tuple-based objects.