MCPcopy Create free account
hub / github.com/StackStorm/st2 / format_dt

Function format_dt

st2client/st2client/utils/date.py:35–40  ·  view source on GitHub ↗

Format datetime object for human friendly representation.

(dt)

Source from the content-addressed store, hash-verified

33
34
35def format_dt(dt):
36 """
37 Format datetime object for human friendly representation.
38 """
39 value = dt.strftime("%a, %d %b %Y %H:%M:%S %Z")
40 return value
41
42
43def format_isodate(value, timezone=None):

Callers 2

test_format_dtMethod · 0.90
format_isodateFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_format_dtMethod · 0.72