def sec2interval(seconds):
    """Convert seconds to tuple of day, hour, minute and second

    :param seconds: integer
    :returns: tuple day, hour, minute, second

    """
    i = int(seconds)
    second = i % 60
    i //= 60
    minute = i % 60
    i //= 60
    hour = i % 24
    i //= 24
    return i, hour, minute, second