PreviousNext

Overview - DTS API Routines Programming Example

This topic contains a C programming example showing a practical application of the DTS API programming routines. The program performs the following actions:

· Prompts the user to enter two sets of time coordinates corresponding to the timestamps of two "events.''

· Stores those coordinates in a tm structure.

· Converts the tm structure to a utc structure.

· Prints out the utc structure in ISO text format.

· Determines which event occurred first.

· Determines if Event 1 may have caused Event 2 by comparing the intervals.