(self, published=None)
return self.__atom_published
Set or get the published value which contains the time of the initial
        creation or first availability of the entry.

        The value can either be a string which will automatically be parsed or
        a datetime.datetime object. In any case it is necessary that the value
        include timezone information.

        :param published: The creation date.
        :returns: Creation date as datetime.datetime
Set or get the published value which contains the time of the initial
        creation or first availability of the entry.
Set or get the published value which contains the time of the initial creation or first availability of the entry .
def published(self, published=None):
        '''Set or get the published value which contains the time of the initial
        creation or first availability of the entry.

        The value can either be a string which will automatically be parsed or
        a datetime.datetime object. In any case it is necessary that the value
        include timezone information.

        :param published: The creation date.
        :returns: Creation date as datetime.datetime
        '''
        if published is not None:
            if isinstance(published, string_types):
                published = dateutil.parser.parse(published)
            if not isinstance(published, datetime):
                raise ValueError('Invalid datetime format')
            if published.tzinfo is None:
                raise ValueError('Datetime object has no timezone info')
            self.__atom_published = published
            self.__rss_pubDate = published

        return self.__atom_published
def published ( self , published = None ) : if published is not None : if isinstance ( published , string_types ) : published = dateutil . parser . parse ( published ) if not isinstance ( published , datetime ) : raise ValueError ( 'Invalid datetime format' ) if published . tzinfo is None : raise ValueError ( 'Datetime object has no timezone info' ) self . __atom_published = published self . __rss_pubDate = published return self . __atom_published