MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / get_timestamp

Function get_timestamp

src/core/utils.py:139–141  ·  view source on GitHub ↗

获取当前时间戳(秒)

()

Source from the content-addressed store, hash-verified

137
138
139def get_timestamp() -> int:
140 """获取当前时间戳(秒)"""
141 return int(time.time())
142
143
144def format_datetime(dt: Optional[datetime] = None, fmt: str = "%Y-%m-%d %H:%M:%S") -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected