Flight International Airport departs from San Francisco International Airport at 22:45 and arrives at Mexico City Licenciado Benito Juarez International Airport at 04:05.
The flighttime is about 3h 20m. The distance travelled ("as the bird flies"): 2658 Km. So the average speed is roughly 797 Km.
There is an 2 hour time difference between San Francisco and Mexico City