MCPcopy Create free account
hub / github.com/carpedm20/DCGAN-tensorflow / timestamp

Function timestamp

utils.py:30–33  ·  view source on GitHub ↗
(s='%Y%m%d.%H%M%S', ts=None)

Source from the content-addressed store, hash-verified

28 return os.path.expanduser(os.path.expandvars(path))
29
30def timestamp(s='%Y%m%d.%H%M%S', ts=None):
31 if not ts: ts = time.time()
32 st = datetime.datetime.fromtimestamp(ts).strftime(s)
33 return st
34
35def show_all_variables():
36 model_vars = tf.trainable_variables()

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected