This could be a little expensive because you would need a timer for a solenoid valve, for gasses.
There are timers for Gas Lamps, outside the home. But, these may not be interval timers.
Doing a search might produce something.
You definitely need something that is for combustible gasses; otherwise any spark from a solenoid open-close valve could cause you a lot of problems!