UA 3901 then ZG 25 at San Francisco
Hong Kong → San Francisco → Tokyo Narita
Timetable, San Francisco time
16:34UA 3901 from Hong Kong at the gate
15:35ZG 25 to Tokyo Narita leaves the gate
23 h 01 apart on the timetable, overnight
ZG 25 leaves 23 h 01 after UA 3901 arrives on the timetable: more than half a day, so not a connection we count.