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
def get_created_date(self): """Get the datetime this object was created""" return iso8601_to_dt(self._json_data["fdCreatedDate"])
def get_last_modified_date(self): """Get the last modified datetime of this object""" return iso8601_to_dt(self._json_data["fdLastModifiedDate"])
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"))
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"))