Restore_to_point_in_time

Please help me with restore_to_point_in_time code details. I tried everything but not able to do that.