MCPcopy 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
30def parse(value):
31 dt = dateutil.parser.parse(str(value))
32 return dt if dt.tzinfo else add_utc_tz(dt)
33
34
35def format_dt(dt):

Callers 1

_get_value_complexFunction · 0.70

Calls 2

parseMethod · 0.80
add_utc_tzFunction · 0.70

Tested by

no test coverage detected