diff --git a/binarycpython/utils/functions.py b/binarycpython/utils/functions.py
index 9ff2f3668ce3b298a39ef702edbdeca8a73b5f64..41a0516557707bbf48820b5077465b31fc029b25 100644
--- a/binarycpython/utils/functions.py
+++ b/binarycpython/utils/functions.py
@@ -77,7 +77,13 @@ def timedelta(delta):
     # currently use the humanize module to do this
     t = humanize.time.precisedelta(dt.timedelta(seconds=delta),format='%0.2f',minimum_unit='milliseconds',suppress=['milliseconds'])
     # and use more compact units
+    t = t.replace(" days and","d")
+    t = t.replace(" hours and","h")
+    t = t.replace(" minutes and","m")
+    t = t.replace(" seconds and","s")
+    t = t.replace(" days","d")
     t = t.replace(" hours","h")
+    t = t.replace(" minutes","m")
     t = t.replace(" seconds","s")
     return t