Did I find the right examples for you? yes no

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

        def utc2str(u, tz=None):
    # Format to RFC822 time string in current timezone
    if tz is None:
        tz = SNSAPI_TIMEZONE
    return _format_date(datetime.fromtimestamp(u, tz))
        


src/s/n/snsapi-0.7.1/snsapi/snstype.py   snsapi(Download)
        #     output uncluttered.
        return unicode("[%s] at %s \n  %s") % (self.parsed.username,
                utils.utc2str(self.parsed.time),
                self.parsed.text[0:500])
 
        if tz:
            return unicode("[%s] at %s \n  %s") % \
                    (self.parsed.username, utils.utc2str(self.parsed.time, tz), self.parsed.text)
        else:
            return unicode("[%s] at %s \n  %s") % \
                    (self.parsed.username, utils.utc2str(self.parsed.time), self.parsed.text)

src/s/n/snsapi-HEAD/snsapi/snstype.py   snsapi(Download)
        #     output uncluttered.
        return unicode("[%s] at %s \n  %s") % (self.parsed.username,
                utils.utc2str(self.parsed.time),
                self.parsed.text[0:500])
 
        if tz:
            return unicode("[%s] at %s \n  %s") % \
                    (self.parsed.username, utils.utc2str(self.parsed.time, tz), self.parsed.text)
        else:
            return unicode("[%s] at %s \n  %s") % \
                    (self.parsed.username, utils.utc2str(self.parsed.time), self.parsed.text)