Ejemplo n.º 1
0
 def getDestroyingTimeLeft(self):
     if self.finishTime is not None:
         destroyTimeDelta = time_utils.getTimestampFromNow(self.finishTime)
         if destroyTimeDelta <= CompanyBattles.DELTA:
             return 0
         return destroyTimeDelta
     return self.finishTime
Ejemplo n.º 2
0
 def getDestroyingTimeLeft(self):
     if self.finishTime is not None:
         destroyTimeDelta = time_utils.getTimestampFromNow(self.finishTime)
         if destroyTimeDelta <= CompanyBattles.DELTA:
             return 0
         return destroyTimeDelta
     return self.finishTime
Ejemplo n.º 3
0
 def getCreationTimeLeft(self):
     if self.startTime is not None:
         startTimeDelta = time_utils.getTimestampFromNow(self.startTime)
         if startTimeDelta <= CompanyBattles.DELTA:
             return 0
         return startTimeDelta
     return self.startTime
Ejemplo n.º 4
0
 def getCreationTimeLeft(self):
     if self.startTime is not None:
         startTimeDelta = time_utils.getTimestampFromNow(self.startTime)
         if startTimeDelta <= CompanyBattles.DELTA:
             return 0
         return startTimeDelta
     return self.startTime