

def timestring(self, pattern='%Y-%m-%d %H:%M:%S', timezone=None):
    'Returns a time string.\n\n        :param pattern = "%Y-%m-%d %H:%M:%S"\n            The format used. By default, an ISO-type format is used. The\n            syntax here is identical to the one used by time.strftime() and\n            time.strptime().\n\n        :param timezone = self.timezone\n            The timezone (in seconds west of UTC) to return the value in. By\n            default, the timezone used when constructing the class is used\n            (local one by default). To use UTC, use timezone = 0. To use the\n            local tz, use timezone = chronyk.LOCALTZ.\n        '
    if (timezone is None):
        timezone = self.timezone
    timestamp = (self.__timestamp__ - timezone)
    timestamp -= LOCALTZ
    return _strftime(self, _gmtime(timestamp))

dataset/ETHPy150Open KoffeinFlummi/Chronyk/chronyk/chronyk.py Chronyk.timestring/VarMisuse@53/300 `pattern`->`self`