BA 1497 then LH 901 at Heathrow
Glasgow → London → Frankfurt am Main
Timetable, London time
09:35BA 1497 from Glasgow at the gate
09:30LH 901 to Frankfurt am Main leaves the gate
23 h 55 apart on the timetable, overnight
LH 901 leaves 23 h 55 after BA 1497 arrives on the timetable: more than half a day, so not a connection we count.