@staticmethod<EOL><INDENT>def secs_to_dhms(time_in_secs):<DEDENT>
days = int(time_in_secs / SECS_IN_DAY)<EOL>remaining_secs = time_in_secs % SECS_IN_DAY<EOL>hours = int(remaining_secs / SECS_IN_HOUR)<EOL>remaining_secs = remaining_secs % SECS_IN_HOUR<EOL>mins = int(remaining_secs / SECS_IN_MIN)<EOL>secs = int(remaining_secs % SECS_IN_MIN)<EOL>return days, hours, mins, secs<EOL>
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).