Hours set by UK CAA.
Max duty time is a combination of sectors flown, and time of start.
There is a matrix of it all to consult.
A start before 7am for exam will have a shorter duty day than one after.
A single sector will have a longer duty day than 3 sectors.