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