AA 279 then AA 3079 at Philadelphia
Edinburgh → Philadelphia → San Francisco
Timetable, Philadelphia time
14:55AA 279 from Edinburgh at the gate
13:45AA 3079 to San Francisco leaves the gate
22 h 50 apart on the timetable, overnight
AA 3079 leaves 22 h 50 after AA 279 arrives on the timetable: more than half a day, so not a connection we count.