The following two functions are particularly important because all date/times are stored and returned by the API in UTC format and need to be converted on occasion.
| function LocalDateToUTCDate( Date: TDateTime ): TDateTime;
|
| function UTCDateToLocalDate( Date: TDateTime ): TDateTime;
|
|
|
| LocalDateTime := UTCDateToLocalDate( FileDateToDateTime( TrackerDate ) );
|
similarly, before storing a date, it shoudl be converted to UTC using a call similar to the following:
| TrackerDate := DateTimeToFileDate( LocalDateToUTCDate( LocalDateTime ) );
|
|
|
|
|
© 1995-2011 Quality Software Components Ltd