AF 8883 then UA 5875 at San Francisco
Los Angeles → San Francisco → Bakersfield
Timetable, San Francisco time
21:34AF 8883 from Los Angeles at the gate
21:31UA 5875 to Bakersfield leaves the gatealso NZ 9158
23 h 57 apart on the timetable, overnight
UA 5875 leaves 23 h 57 after AF 8883 arrives on the timetable: more than half a day, so not a connection we count.