(obj)
return obj
Turn obj.value into a datetime.

        RFC2445 allows times without time zone information, "floating times"
        in some properties.  Mostly, this isn't what you want, but when parsing
        a file, real floating times are noted by setting to 'TRUE' the
        X-VOBJ-FLOATINGTIME-ALLOWED parameter.
Turn obj.value into a datetime.
Turn obj . value into a datetime .
def transformToNative(obj):
        """
        Turn obj.value into a datetime.

        RFC2445 allows times without time zone information, "floating times"
        in some properties.  Mostly, this isn't what you want, but when parsing
        a file, real floating times are noted by setting to 'TRUE' the
        X-VOBJ-FLOATINGTIME-ALLOWED parameter.
        """
        if obj.isNative: return obj
        obj.isNative = True
        if obj.value == '': return obj
        obj.value=obj.value
        # we're cheating a little here, parseDtstart allows DATE
        obj.value=parseDtstart(obj)
        if obj.value.tzinfo is None:
            obj.params['X-VOBJ-FLOATINGTIME-ALLOWED'] = ['TRUE']
        if obj.params.get('TZID'):
            # Keep a copy of the original TZID around
            obj.params['X-VOBJ-ORIGINAL-TZID'] = [obj.params['TZID']]
            del obj.params['TZID']
        return obj
def transformToNative ( obj ) : if obj . isNative : return obj obj . isNative = True if obj . value == '' : return obj obj . value = obj . value # we're cheating a little here, parseDtstart allows DATE obj . value = parseDtstart ( obj ) if obj . value . tzinfo is None : obj . params [ 'X-VOBJ-FLOATINGTIME-ALLOWED' ] = [ 'TRUE' ] if obj . params . get ( 'TZID' ) : # Keep a copy of the original TZID around obj . params [ 'X-VOBJ-ORIGINAL-TZID' ] = [ obj . params [ 'TZID' ] ] del obj . params [ 'TZID' ] return obj