A one-shot is a good first choice if you can commit to one date and want to try the game with a clear stopping point. Choose a recurring campaign when you want the story to carry forward and can make the group's usual schedule. Confirm the expected end time either way. A game listed as a one-shot can still ask players to arrive early to make characters.

Ask about the time before choosing the story

If a listing says “new players welcome,” ask whether the start time includes setup and whether someone will help you through your first turn. In its Adventurers League FAQ, Wizards of the Coast tells players to confirm openings and timing with their local venue. In a first-session discussion on r/DnD, the newcomer needed help deciding how to prepare. A message to the person running your game gets you the local answers to both questions. See Wizards of the Coast Adventurers League FAQ and r/DnD question about preparing for a first session.

If you have this kind of availabilityAsk the host
One Saturday evening this monthWill the adventure wrap up that evening, and can I use a ready-made character?
Two Fridays a monthWhich Fridays does the campaign usually meet, and can the group play if I miss one?
An unpredictable work scheduleIs there a table that accepts occasional sign-ups for individual sessions?

Confirm the tone before committing

Chicago Tabletop Gaming Association describes an expectations conversation for both recurring games and one-shots. Even for a single evening, ask how long the group wants to play and whether the tone is suitable for you. Chicago Tabletop Gaming Association guide to session zero

At a library or shop running both formats, keep the next openings on custom rack cards at check-in and use custom tabletop signs to distinguish the rooms. Use custom notebooks and padfolios to mark the date and end time you actually committed to.

Printed rack cards
An event handout can show the one-shot as one dated session and list campaign scheduling separately.
Notebook and click-pen sets
Record the arrival time, end time and character arrangement in one place.