add rs_timestamp function