UA 5480 then WN 2516 at San Francisco
Sacramento → San Francisco → Los Angeles
Timetable, San Francisco time
15:29UA 5480 from Sacramento at the gate
14:40WN 2516 to Los Angeles leaves the gate
23 h 11 apart on the timetable, overnight
WN 2516 leaves 23 h 11 after UA 5480 arrives on the timetable: more than half a day, so not a connection we count.