The governing board of each school district shall, subject to the provisions of this chapter, fix the length of the schoolday for the several grades and classes of the schools maintained by the district.