fnp
/
wolnelektury.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge commit '645219bfa68384dad930269b94e2ddf8b4cd3488' into api
[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 with fractional part"
7
return mktime(dtime.timetuple()) + dtime.microsecond / 1000000.0
8