feat:更新日志存储和查询模块

This commit is contained in:
2025-10-28 16:19:35 +08:00
parent 056cd8d4ba
commit 6cfde5dcb4
17 changed files with 128 additions and 38 deletions

View File

@@ -21,5 +21,5 @@ def get_timestamp_range(ts: int, delta_seconds: int = 5, unit: str = "microsecon
return ts - delta, ts + delta
def format_timestamp(timestamp: int) -> str:
return datetime.fromtimestamp(timestamp / 1_000_000).strftime("%Y-%m-%d %H:%M:%S")
def format_timestamp(timestamp: int) -> datetime:
return datetime.fromtimestamp(timestamp / 1_000_000)