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