sanbo
update sth. at 2025-01-05 00:17:16
778d7a6
raw
history blame
342 Bytes
from datetime import datetime
current_time = datetime.utcnow().strftime('%a, %d %b %Y %H:%M:%S GMT')
print(current_time) # 输出样例: Sat, 04 Jan 2025 16:04:59 GMT
from email.utils import formatdate
current_time = formatdate(timeval=None, localtime=False, usegmt=True)
print(current_time) # 输出样例: Sat, 04 Jan 2025 16:04:59 GMT