ASP Classic samples


So far I just need some simple functions in classic asp. We got the sample asp to list incoming flights.

We need

  1. Status of a flight using flight number and airline code
  2. Gate # of the same same flight if arrived
  3. Expected arrival time if still in transit.



  1. You will need to write the code to call the “FlightInfoEx” function with the ident that is the airline code (3-character ICAO code) plus the appended flight number. That function will return multiple flight instances (some future, any enroute ones, some past) of that flight number. Your application will need to show that list to the user and allow them to pick which instance (based on the day/time) they want.

  2. Then whichever flight instance they picked, use the faFlightID to call the “AirlineFlightInfo” function and then you can get the gate #, if it is available.

  3. The original result of the FlightInfoEx function has the “estimatedarrivaltime” for each instance of the flight.

Note that the “actualdeparturetime” will be 0 when it has not yet occurred, or non-zero if it has departed. Similarly, “actualarrivaltime” will be 0 when it has not yet arrived, but non-zero if it has. A flight that is enroute will therefore have actualdeparturetime != 0 and actualarrivaltime == 0.


Thanks,getting close. How do I break down the number for the times?


THANKS! We got it working!


How do I breakdown the numbers in departure time?


All timestamps are “UNIX Epoch” seconds since Jan 1, 1970 in UTC timezone, which is a fairly standard computing representation of time. You will need to research what methods exist in ASP to convert and format to different representations.

Based on this webpage, I think you might be able to try this to get it in human-readable UTC format:

 DateAdd("s", epoch, "01/01/1970 00:00:00")


Sorry, I got no answer on converting from epoch to human in asp.

I tried dividing epoch by 1000 to remove milliseconds



Did you try the DateAdd() command I listed above? There is no need to divide by 1000 since they are already whole seconds, not milliseconds.