Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
34
def
format_bj_time(fmt=
'%Y-%m-%d %H:%M:%S'
):
35
""
"格式化北京时间"
""
36
return
get_bj_time().strftime(fmt)
Callers
1
generate_surge
Function · 0.90
Calls
1
get_bj_time
Function · 0.85
Tested by
no test coverage detected