Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/utils/rss.py   madcow(Download)
        self.editor = editor
        self.webmaster = webmaster
        self.published = tzdatetime.new(published)
        self.build_date = self.published if build_date is None else tzdatetime.new(build_date)
        self.categories = categories or []
            for item in self:
                published = self.published if item.published is None else tzdatetime.new(item.published)
                with rss.child('item'):
                    rss.add('link', item.link)

src/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/utils/xml.py   madcow(Download)
    def add_time(self, name, dt=None, **kwargs):
        """Add a datetime object serialized as UNIX epochal time"""
        val = tzdatetime.new(dt)
        kwargs.setdefault('type', 'time')
        kwargs.setdefault('format', 'unix')