UA 3901 then UA 1271 at San Francisco
Hong Kong → San Francisco → Mexico City
Timetable, San Francisco time
16:34UA 3901 from Hong Kong at the gate
10:45UA 1271 to Mexico City leaves the gatealso AC 3479, NZ 9821
18 h 11 apart on the timetable, overnight
UA 1271 leaves 18 h 11 after UA 3901 arrives on the timetable: more than half a day, so not a connection we count.