[hamster-applet] unused functions



commit f98491b2d5eac29eb0c7da422515b884a3dff98e
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sat Nov 6 12:48:48 2010 +0000

    unused functions

 src/hamster-cli |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/src/hamster-cli b/src/hamster-cli
index dca16ae..037e810 100755
--- a/src/hamster-cli
+++ b/src/hamster-cli
@@ -120,17 +120,6 @@ class HamsterClient(object):
             print category['name'].encode('utf8')
 
 
-def timestamp_from_datetime(date):
-    '''Convert a local time datetime into an utc timestamp.'''
-    if date:
-        return timegm(date.timetuple())
-    else:
-        return 0
-
-def datetime_from_timestamp(timestamp):
-    '''Convert an utc timestamp into a local time datetime.'''
-    return dt.datetime.utcfromtimestamp(timestamp)
-
 def parse_datetime_range(time):
     '''Parse starting and ending datetime separated by a '-'.'''
     start_time, remainder = parse_datetime(time)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]