repo.or.cz
/
rofl0r-twatscrape.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix picture fetching
[rofl0r-twatscrape.git]
/
misc.py
blob
c90ba750ef1cb091b3edd5fd3dfec87a411b6dd6
1
import
time
2
3
def
get_timestamp
(
date_format
,
date
=
None
):
4
if not
date
:
date
=
time
.
time
()
5
return
time
.
strftime
(
date_format
,
time
.
gmtime
(
date
))