《Claude Code 工程化实战》第 8 讲 多子代理协同实战
2026/7/2 22:09:18
from datetime import datetime
now = datetime.now() # 获取当前时间的datetime对象 now_seconds = round(now.timestamp()) # now.timestamp()会返回带毫秒的浮点数:1782868575.267624,比如:now.timestamp()(秒) now_str = now.strftime("%Y-%m-%d %H:%M:%S")print(now_str)