MCPcopy Create free account
hub / github.com/StarsTom/mobileCodexHelper / format_datetime

Function format_datetime

mobile_codex_control.py:220–224  ·  view source on GitHub ↗
(value: str | None)

Source from the content-addressed store, hash-verified

218
219
220def format_datetime(value: str | None) -> str:
221 dt = parse_datetime(value)
222 if not dt:
223 return "暂无"
224 return dt.astimezone().strftime("%Y-%m-%d %H:%M:%S")
225
226
227def minutes_since(value: str | None) -> float | None:

Callers 3

collect_statusFunction · 0.85
apply_statusMethod · 0.85

Calls 1

parse_datetimeFunction · 0.85

Tested by

no test coverage detected