Law 7 The Duration of the Match - Periods of Play.
The match lasts two equal periods of 45 minutes, unless otherwise mutually agreed between the referee and the two teams. Any agreement to alter the duration of the periods of play (for example, to reduce each half to 40 minutes because of insufficient light) must be made before the start of play and must comply with competition rules.