But this is authoritarian.
Why should the government control how I manage my time? I'm pretty sure this site would be pretty outraged if the government decided we could only code 3 hours a week.
And please don't use the "but coding is constructive!1!" argument. A good use of time is defined by whoever spends it, not whatever someone else's idea of wasting time is.
As a case in point, playing hours of Splitgate has kept me sane during the pandemic as a college student locked in a room for 1.8 years. I meet on Discord with friends and discuss topics while playing. I've made more friends gaming than physically in the past year. That's pretty constructive if you ask me.