Login Page - Create Account

Support Board


Date/Time: Thu, 23 May 2024 16:53:03 +0000



DATETIME_TO_YMDHMS

View Count: 422

[2020-12-07 01:59:15]
marcovth - Posts: 61
int iDate = sc.BaseDateTimeIn.DateAt(i);
int iTime = sc.BaseDateTimeIn.TimeAt(i);
int iYear,iMonth,iDay,iHour,iMinute,iSecond;
DATETIME_TO_YMDHMS(iDate,iYear,iMonth,iDay,iHour,iMinute,iSecond);
TIME_TO_HMS(iTime, iHour, iMinute, iSecond);

Hello ...

This used to compile perfectly fine for years.

Now suddenly it's giving ... error: call of overloaded 'DATETIME_TO_YMDHMS(int&, int&, int&, int&, int&, int&, int&)' is ambiguous

I had to find in the h files that DATETIME_TO_YMDHMS is replaced by GetDateTimeYMDHMS(iDate,iYear,iMonth,iDay,iHour,iMinute,iSecond)

When you search the website with "DATETIME_TO_YMDHMS", there is nothing to be found. You would expect some explanation in help files for how it has changed.

Anyway, whatever I try, I keep getting errors with GetDateTimeYMDHMS.

How do I solve this code?

Thanks in advance.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account