LA 6139 then UA 1145 at San Francisco
Boston → San Francisco → Cancún
Timetable, San Francisco time
23:58LA 6139 from Boston at the gate
23:00UA 1145 to Cancún leaves the gate
23 h 02 apart on the timetable, overnight
UA 1145 leaves 23 h 02 after LA 6139 arrives on the timetable: more than half a day, so not a connection we count.