AA 6585 then AA 9978 at Philadelphia
Atlantic City → Philadelphia → Albany (New York)
Timetable, Philadelphia time
12:45AA 6585 from Atlantic City at the gate
10:46AA 9978 to Albany (New York) leaves the gate
22 h 01 apart on the timetable, overnight
AA 9978 leaves 22 h 01 after AA 6585 arrives on the timetable: more than half a day, so not a connection we count.