Commit 9de6f6d2 authored by Vincent Pelletier's avatar Vincent Pelletier

utils: Returns timestamp as an integer.

This is used for serialisation, and there is no need for sub-second
precision.
parent 55dc07d0
...@@ -443,7 +443,7 @@ def datetime2timestamp(value): ...@@ -443,7 +443,7 @@ def datetime2timestamp(value):
""" """
Convert given datetime into a unix timestamp. Convert given datetime into a unix timestamp.
""" """
return (value - EPOCH).total_seconds() return int((value - EPOCH).total_seconds())
def timestamp2IMFfixdate(value): def timestamp2IMFfixdate(value):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment