]> git.itanic.dy.fi Git - emerge-timer/commitdiff
Rename date_printer function to get_date
authorEsko Kokkonen <esko.kokkonen@gmail.com>
Sun, 14 Aug 2011 16:14:06 +0000 (19:14 +0300)
committerEsko Kokkonen <esko.kokkonen@gmail.com>
Sun, 14 Aug 2011 16:14:06 +0000 (19:14 +0300)
Rename this because the function doesn't actually print anything
anymore. It only converts the time its given in seconds to a date
string.

emerge-timer.py

index 2c983f9d75ec00a941a4305620197541c66b838b..6311cfc292de0ef9bbe1076ed86d4693807e2d99 100755 (executable)
@@ -69,7 +69,7 @@ def organize_times(time):
 
 
 
-def date_printer(emerge_start):
+def get_date(emerge_start):
     """Take the emerge startup time in seconds and turn it into a
     correct date."""
 
@@ -321,7 +321,7 @@ def main_loop(f, package, silent):
 
                             emerge_time = time2-time
 
-                            date = date_printer(time)
+                            date = get_date(time)
 
 
                             if silent == False: