There is a Legacy version
here.

Time Beacon
[one-action] Spell 7Manipulate Source Divine Mysteries pg. 260PFS Note Organized play does not allow this spell. Instead, substitute
true target.
Traditions arcane,
occultMystery timeDuration until the end of your turn
You create a beacon in time to return to it if things go wrong. You can cast
time beacon only on your turn. Keep careful track of everything that happens this turn after you cast time beacon. At the end of your turn, you can choose to rewind time back to just after you cast
time beacon, removing all effects of your turn since then.
Curses, traps, and other harmful effects that happen during your turn might prevent you from returning to the beacon if they’re powerful enough. If you were affected by any harmful effects during your turn after casting
time beacon, in order to return to your beacon,
time beacon attempts a
counteract check against each such effect. If it fails at any of these checks, you can’t return. After returning to the
time beacon, the spell ends.