Пример #1
0
 def smc_time(self):
     """
     Return the SMC time as datetime object in UTC
     
     :rtype datetime
     """
     return millis_to_utc(
         int(self.make_request(resource='smc_time').get('value')))
Пример #2
0
    def end_time(self):
        """
        Task end time in UTC datetime format

        :rtype: datetime
        """
        end_time = self.data.get("end_time")
        if end_time:
            return millis_to_utc(end_time)
Пример #3
0
    def start_time(self):
        """
        Task start time in UTC datetime format

        :rtype: datetime
        """
        start_time = self.data.get("start_time")
        if start_time:
            return millis_to_utc(start_time)
Пример #4
0
 def smc_time(self):
     """
     Return the SMC time as datetime object in UTC
     
     :rtype datetime
     """
     return millis_to_utc(
         int(self.make_request(
             resource='smc_time').get('value')))