UA 3901 then LX 3171 at San Francisco
Hong Kong → San Francisco → Newark
Timetable, San Francisco time
16:34UA 3901 from Hong Kong at the gate
10:05LX 3171 to Newark leaves the gate
17 h 31 apart on the timetable, overnight
LX 3171 leaves 17 h 31 after UA 3901 arrives on the timetable: more than half a day, so not a connection we count.