from datetime import datetime

def convert_to_epoch(timestamp):
	diff = (timestamp - datetime(1970, 1, 1))
	seconds = int(diff.total_seconds())
	return seconds

@@ -24,16 +24,294 @@
 tetime%0A%0A
+def total_seconds(td):%0A    # Keep backward compatibility with Python 2.6 which doesn't have%0A    # this method%0A    if hasattr(td, 'total_seconds'):%0A        return td.total_seconds()%0A    else:%0A        return (td.microseconds + (td.seconds + td.days * 24 * 3600) * 10**6) / 10**6%0A%0A
 def conv
@@ -335,16 +335,16 @@
 stamp):%0A
-
 %09diff = 
@@ -397,13 +397,8 @@
 int(
-diff.
 tota
@@ -407,16 +407,20 @@
 seconds(
+diff
 ))%0A%09retu

Update timeutils.py