Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StackStorm/st2
/ parse
Function
parse
st2client/st2client/utils/date.py:30–32 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
28
29
30
def
parse(value):
31
dt = dateutil.parser.parse(str(value))
32
return
dt
if
dt.tzinfo
else
add_utc_tz(dt)
33
34
35
def
format_dt(dt):
Callers
1
_get_value_complex
Function · 0.70
Calls
2
parse
Method · 0.80
add_utc_tz
Function · 0.70
Tested by
no test coverage detected