Hello All,
I need a javascript to perform the following calculation:
Take an aicraft's Actual time of Departure (ATD) and subtract it from the Scheduled Departure Time (SDT) to display the Actual Delay in minutes.
For example:
Flight TA570 SDT 23:50 (time entered manually)
Actual Departure Time 00:22 (time entered manually)
Delay = 32 minutes (calculated by the script)
I know it's a simple task...but I am new using this thing and subtraction is not among the built-in Acrobat calculations.
Thanks for your time and help!!
CRamia
Date/time calculations can get tricky, particularly when validating inputs and when assumptions are made. For example, in the case above you're assuming a delay of less than 24 hours. A field value of "1:2" will get displayed as "01:02" for a text field set up with a Time format category that uses the HH:MM format string.
George