Support Board
Date/Time: Wed, 27 Nov 2024 14:38:55 +0000
Post From: Millisecond part of SCDateTimeMS variable
[2014-07-15 05:02:41] |
User44130 - Posts: 23 |
I'm trying to get time with milliseconds for records in Time&Sales array using code below but millisecond part of time variable does not print to the log. Please advise how to output millisecond part of SCDateTimeMS variable to log. Is there a function to extract millisecond part of SCDateTimeMS variable as integer in order to use it in calculations? SCDateTimeMS TSADateTime; SCString MsgLog; sc.GetTimeAndSales(TSA); int TSArrSize = TSA.GetArraySize() - 1; for (t = TSArrSize; t >= 0; t--) { TSADateTime = TSA[t].DateTime; TSADateTime += sc.TimeScaleAdjustment; MsgLog.Format(" TSADateTime: %s ", sc.FormatDateTime(TSADateTime).GetChars()); sc.AddMessageToLog(MsgLog,0); } |