re-run generators, black

This commit is contained in:
2023-03-21 23:27:42 +01:00
parent c9b269b01a
commit 934a147caa
4 changed files with 466 additions and 457 deletions

View File

@ -105,7 +105,6 @@ class Info:
REQUEST_SOLUTION_SET = "Request Solution Set HK once"
class SetId(enum.IntEnum):
VERSION = 2
INTERFACE = 3
@ -695,8 +694,7 @@ def unpack_time_hk(hk_data: bytes, current_idx: int, pw: PrintWrapper) -> int:
ticks_time_fmt, hk_data[current_idx : current_idx + fmt_len]
)
unix_as_dt = datetime.datetime.fromtimestamp(
int(round(unix_time / 10e6)),
tz=datetime.timezone.utc
int(round(unix_time / 10e6)), tz=datetime.timezone.utc
)
pw.dlog(f"Ticks: {ticks} | UNIX time: {unix_time}")
pw.dlog(f"UNIX as datetime: {unix_as_dt}")