返回 UTC ISO 8601 时间字符串(末尾 Z)
()
| 25 | |
| 26 | |
| 27 | def now_iso(): |
| 28 | """返回 UTC ISO 8601 时间字符串(末尾 Z)""" |
| 29 | return datetime.datetime.now(datetime.timezone.utc).isoformat().replace('+00:00', 'Z') |
| 30 | |
| 31 | |
| 32 | def today_str(fmt='%Y%m%d'): |
no outgoing calls
no test coverage detected