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

Function format_age_text

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

Source from the content-addressed store, hash-verified

232
233
234def format_age_text(value: str | None) -> str:
235 delta = minutes_since(value)
236 if delta is None:
237 return "时间未知"
238 if delta < 1:
239 return "刚刚"
240 return f"{int(delta)} 分钟前"
241
242
243def is_recent(value: str | None, minutes: int = PHONE_ACTIVITY_WINDOW_MINUTES) -> bool:

Callers 2

apply_statusMethod · 0.85

Calls 1

minutes_sinceFunction · 0.85

Tested by

no test coverage detected