(self, **kwargs)
return newadatetime
Returns a copy of this object with the attributes given as keyword
        arguments replaced.

        >>> adt = adatetime(year=2009, month=10, day=31)
        >>> adt.replace(year=2010)
        (2010, 10, 31, None, None, None, None)
Returns a copy of this object with the attributes given as keyword
        arguments replaced.
Returns a copy of this object with the attributes given as keyword arguments replaced .
def replace(self, **kwargs):
        """Returns a copy of this object with the attributes given as keyword
        arguments replaced.

        >>> adt = adatetime(year=2009, month=10, day=31)
        >>> adt.replace(year=2010)
        (2010, 10, 31, None, None, None, None)
        """

        newadatetime = self.copy()
        for key, value in iteritems(kwargs):
            if key in self.units:
                setattr(newadatetime, key, value)
            else:
                raise KeyError("Unknown argument %r" % key)
        return newadatetime
def replace ( self , * * kwargs ) : newadatetime = self . copy ( ) for key , value in iteritems ( kwargs ) : if key in self . units : setattr ( newadatetime , key , value ) else : raise KeyError ( "Unknown argument %r" % key ) return newadatetime