MCPcopy
hub / github.com/mher/flower / format_time

Function format_time

flower/utils/template.py:13–15  ·  view source on GitHub ↗
(time, tz)

Source from the content-addressed store, hash-verified

11
12
13def format_time(time, tz):
14 dt = datetime.fromtimestamp(time, tz=tz)
15 return dt.strftime("%Y-%m-%d %H:%M:%S.%f %Z")
16
17
18def humanize(obj, type=None, length=None):

Callers 2

test_timeMethod · 0.90
humanizeFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_timeMethod · 0.72