That includes all vehicles, including bicycles. Tagging-wise this would be

vehicle=yes
vehicle:conditional=no @ (11:30-21:00)

or in this case probably better to use 'no' as the default and conditionally tag 'yes' instead, to account for routers that don't understand conditionals:

vehicle=no
vehicle:conditional=yes @ (00:00-9:30, 21:00-24:00)