Added in 1.9.0

$awaytime

If you are marked as away on current server connection, it returns number of seconds you have been away.