code: def secs_to_dhms(time_in_secs):
          
          days = int(time_in_secs / SECS_IN_DAY)
          remaining_secs = time_in_secs % SECS_IN_DAY
          hours = int(remaining_secs / SECS_IN_HOUR)
          remaining_secs = remaining_secs % SECS_IN_HOUR
          mins = int(remaining_secs / SECS_IN_MIN)
          secs = int(remaining_secs % SECS_IN_MIN)
          return days, hours, mins, secs
docs: Convert seconds to days, hours, minutes, seconds.
  
          Using days as the largest unit of time.  Blindly using the days in
          `time.gmtime()` will fail if it's more than one month (days > 31).