For those people who like to decompose the TDateTime object as it is returned by Time and iTime into something useful in C++ use the following calls to convert this COledatetime object into something civil:
Code: Select all
SYSTEMTIME mytime;
VariantTimeToSystemTime( iTime(symbol, timeFrame, iUp+1), &mytime);
Now mytime is a structure the details can be found here:
Code: Select all
typedef struct _SYSTEMTIME {
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
} SYSTEMTIME, *PSYSTEMTIME;
Hope this helps others to make the conversion, took me way to long to figure this out.
Wessel