MCPcopy Create free account
hub / github.com/Cats-Team/AdRules / format_bj_time

Function format_bj_time

script/utils.py:34–36  ·  view source on GitHub ↗

格式化北京时间

(fmt='%Y-%m-%d %H:%M:%S')

Source from the content-addressed store, hash-verified

32 return datetime.now(bj_tz)
33
34def format_bj_time(fmt='%Y-%m-%d %H:%M:%S'):
35 """格式化北京时间"""
36 return get_bj_time().strftime(fmt)

Callers 1

generate_surgeFunction · 0.90

Calls 1

get_bj_timeFunction · 0.85

Tested by

no test coverage detected