U2 3851 then U2 7979 at Schiphol
Milan → Amsterdam → Marrakesh
Timetable, Amsterdam time
08:05U2 3851 from Milan at the gate
07:30U2 7979 to Marrakesh leaves the gate
23 h 25 apart on the timetable, overnight
U2 7979 leaves 23 h 25 after U2 3851 arrives on the timetable: more than half a day, so not a connection we count.