Exemplo n.º 1
0
class Base(object):
    def __init__(self, configFileName):
        from trello.trello import Trello
        self.trello = Trello(configFileName)
        self.config = self.trello.getConfig()

    def utctimeFormat(self, utctime, timeFormat='%Y-%m-%d %H:%M:%S'):
        from dateutil import parser, tz
        return parser.parse(utctime).astimezone(
            tz.tzoffset('China', 60 * 60 * 8)).strftime(timeFormat)
Exemplo n.º 2
0
class Base(object):
  def __init__(self, configFileName):
    from trello.trello import Trello
    self.trello = Trello(configFileName)
    self.config = self.trello.getConfig()

  def utctimeFormat(self, utctime, timeFormat = '%Y-%m-%d %H:%M:%S'):
    from dateutil import parser, tz
    return parser.parse(utctime).astimezone(
      tz.tzoffset('China', 60*60*8)
    ).strftime(timeFormat)
Exemplo n.º 3
0
 def __init__(self, configFileName):
   from trello.trello import Trello
   self.trello = Trello(configFileName)
   self.config = self.trello.getConfig()
Exemplo n.º 4
0
 def __init__(self, configFileName):
     from trello.trello import Trello
     self.trello = Trello(configFileName)
     self.config = self.trello.getConfig()