fnp
/
wolnelektury.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
librarian bump with proper merge
[wolnelektury.git]
/
apps
/
api
/
helpers.py
1
# -*- coding: utf-8 -*-
2
3
from time import mktime
4
5
def timestamp(dtime):
6
"converts a datetime.datetime object to a timestamp int"
7
return int(mktime(dtime.timetuple()))
8