def time_from_seconds(seconds):
    """
    Convert an amount of seconds into its corresponding (d, h, m, s) match.

    :param seconds: the time in seconds
    :type seconds: str | int | float
    :return: time(day(s), hour(s), minute(s), second(s))
    :rtype: tuple
    """
    if not isinstance(seconds, float):
        # Will raise if passed type is not correct
        seconds = float(seconds)

    m, s = divmod(seconds, 60)
    h, m = divmod(m, 60)
    d, h = divmod(h, 24)

    return d, h, m, s