Yes you can
I'm going to change the frame of the question:
What Id like to do is create a scenario where PC enter some sort of portal for inter planer travel but when they return, they arent in the same time period OR they arent in the same location.
Is there anything in the way of RAW rules that would allow this?
Allow what? Entering the portal?
Your players can enter the portal, when two conditions are met:
This portal exists in the world
PCs are able to walk into it
Option 1 depends on the setting. Do such portals exist in your world? If you use a particular setting, do they exist in this setting? If not, it might be a unique thing. It is not a matter of rules. Option 2 depends on the game itself. Will your players find the portal? There is nothing "RAW" about this. It is about story and worldbuilding, not the rules.
Yes, it is impossible to create such a portal using a spell from the PH (except for the Wish, probably), but class spell lists do not encompass all magic across the world. For instance, spells like Leomund's Tiny Hut and Tenser's Floating Disk assume that a wizard can create a new spell, despite there is no spell creation rules in the PH.
A game world isn't restricted by the rules
Player's Handbook does not say you how to build your world. DMG doesn't address this much as well. However, DMG implies you use rules as a tool (page 235):
The rules serve you, not vice versa.
As a DM, you normally use rules to model PCs interaction with the world. In 5e you are not supposed to use them when you build the world or write the story. You use them to build interactions between your world and your players. Therefore, the question "is X allowed RAW?" is completely irrelevant, unless a player asks you something like "can I learn a spell which allows me to do X"? In this case, X is "opening a time-travelling portal".
When you introduce something into your story, don't ask yourself "is it allowed RAW". Decide what you're trying to accomplish first, then consult the rules to help you do it, not vice versa. Ask instead: "does it makes sense in the context of the setting?" "Are my players interested in such things?" "Will it bring more fun to the game?"