code: def to_dhm_format(days=0, hours=0, minutes=0, seconds=0, milliseconds=0):
      
      minutes = to_minutes(days=days, hours=hours, minutes=minutes,
                           seconds=seconds, milliseconds=milliseconds)
      delta = timedelta(minutes=int(round(minutes)))
      d = delta.days
      h = delta.seconds // 3600
      m = (delta.seconds // 60) % 60
      m = m and "{}m ".format(str(m)) or ""
      d = d and "{}d ".format(str(d)) or ""
      if m and d:
          h = "{}h ".format(str(h))
      else:
          h = h and "{}h ".format(str(h)) or ""
      return "".join([d, h, m]).strip()
docs: Returns a representation of time in a string in xd yh zm format