import time
>>> str(time.time()).replace('.','')[-8:]
'29107263'
Mostly Linux & Python syntax notes and hyperlinks.
Friday, May 29, 2015
python: simple timestamp string
For attaching a relatively unique string to a file name:
Subscribe to:
Posts (Atom)