Get the timout value of a saved transient?

So, after one minute of more thinking, there is an easy solution, although i did not try it myself:

$transient="_transient_timeout_" . $_your_transient_name;
$transient_timeout = get_option ( $transient );

you should be ready to go with this.

Another Way throught the database would be:

$transient="_transient_timeout_" . $_your_transient_name;

global $wpdb;

$query = 'SELECT option_value FROM ' . $wpdb->prefix . 'options WHERE option_name=" . $transient;

$transient_timeout = $wpdb->get_var( $wpdb->prepare( $query ) );

the returned value is a timestamp, but i”m sure you know how to handle it from here.

tech