In Germany it works like that, at least for in-house developers in many larger companies. I got flex time and, on average, don't work more than 40 hours per week. Obviously there are some exceptions (like production issues and large releases), but employees are compensated for those with either money or time-off.