Commits

Felipe Prenholato committed e5a1781

Sometimes people don't need seconds :)

Comments (0)

Files changed (1)

timedelta/helpers.py

 
     if display == "sql":
         return "%02i:%02i:%02i" % (hours, minutes, seconds)
-    else:
+    elif display == "sql_short":
+        return "%02i:%02i" % (hours, minutes)
+    elif display == 'long':
         words = get_words(display, )
 
     values = [0, 0, hours, minutes, seconds]