method for retrieving timestamp from offset