MCPcopy Create free account
hub / github.com/TPCD/DCCL / time_now

Function time_now

project_utils/visualization_utils.py:18–20  ·  view source on GitHub ↗

return current time in format of 2000-01-01 12:01:01

()

Source from the content-addressed store, hash-verified

16
17import time
18def time_now():
19 '''return current time in format of 2000-01-01 12:01:01'''
20 return time.strftime('%Y-%m-%d %H:%M:%S', time.localtime())
21
22def get_cmap(n, name='hsv'):
23 '''Returns a function that maps each index in 0, 1, ..., n-1 to a distinct

Callers 1

visualize3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected