Tab Environments Time Limited

I would love it if the tab environments could automatically be active during my time period. For example, I work from 10 am - 6 pm every day. Then I would like that only tab environment B is used during this time. Outside this time, it would be great if only tab environment B is used then.