MCPcopy
hub / github.com/dronesploit/dronesploit / _change_datetime

Method _change_datetime

dronesploit/drones/hobbico.py:37–42  ·  view source on GitHub ↗
(self, new_dt, dt_format)

Source from the content-addressed store, hash-verified

35 return r
36
37 def _change_datetime(self, new_dt, dt_format):
38 dt = datetime.strptime(new_dt, dt_format)
39 self.logger.info("Changing datetime...")
40 r = self.send_command(29, {"YEAR": dt.year, "MONTH": dt.month, "DAY": dt.day, "HOUR": dt.hour,
41 "MINUTE": dt.minute, "SECOND": dt.second})
42 self._feedback(r, "Datetime not changed")
43
44 def _get_sysinfo(self):
45 self.logger.info("Requesting system information...")

Callers 2

runMethod · 0.80
runMethod · 0.80

Calls 1

send_commandMethod · 0.80

Tested by

no test coverage detected