feat:更新日志存储和查询模块
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user