Commit 9de6f6d2 by Vincent Pelletier

utils: Returns timestamp as an integer.

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