예제 #1
0
 def get_registration_dt(self, use_cached=True):
     """Get the datetime of when this device was added to the device cloud"""
     device_json = self.get_device_json(use_cached)
     start_date_iso8601 = device_json.get("devRecordStartDate")
     if start_date_iso8601:
         return iso8601_to_dt(start_date_iso8601)
     else:
         return None
예제 #2
0
 def get_registration_dt(self, use_cached=True):
     """Get the datetime of when this device was added to the device cloud"""
     device_json = self.get_device_json(use_cached)
     start_date_iso8601 = device_json.get("devRecordStartDate")
     if start_date_iso8601:
         return iso8601_to_dt(start_date_iso8601)
     else:
         return None
예제 #3
0
 def get_created_date(self):
     """Get the datetime this object was created"""
     return iso8601_to_dt(self._json_data["fdCreatedDate"])
예제 #4
0
 def get_last_modified_date(self):
     """Get the last modified datetime of this object"""
     return iso8601_to_dt(self._json_data["fdLastModifiedDate"])
예제 #5
0
 def get_last_connected_dt(self, use_cached=True):
     """Get the datetime that the device last connected to the device cloud"""
     return iso8601_to_dt(self.get_device_json(use_cached).get("dpLastConnectTime"))
예제 #6
0
 def get_last_connected_dt(self, use_cached=True):
     """Get the datetime that the device last connected to the device cloud"""
     return iso8601_to_dt(
         self.get_device_json(use_cached).get("dpLastConnectTime"))