There is no method, that I know of, to get the time until a variable expires.
You might try this work-around however.
set -u3200 %MyVar DATA
set -z %MyVar.time 3200
The variable %MyVar will contain DATA and expire in 3200 seconds, while the variable %MyVar.time will decrement every second until it reaches 0 and expires. Ergo, %MyVar.time will equal the time until %MyVar expires.
- Raccoon