Support Board
Date/Time: Mon, 03 Feb 2025 22:50:40 +0000
Post From: Inconsistent times
[2019-12-05 08:16:32] |
T44 - Posts: 363 |
v2021 Data/Trade Service Settings | Time Zone = CST Study Clock - Real Time showing the correct time (02:09) on the chart in question. ACSIL code running on the same chart SCDateTime CurrentDateTime; if (sc.IsReplayRunning()) { CurrentDateTime = sc.CurrentDateTimeForReplay; String LogMessage; LogMessage.Format("SC thinks replay is running"); sc.AddMessageToLog(LogMessage, 0); } else { CurrentDateTime = sc.CurrentSystemDateTime; } int Hour, Minute, Second; Hour = 0 ; Minute = 0 ; Second = 0; TIME_TO_HMS(CurrentDateTime, Hour, Minute, Second); SCString LogMessage; LogMessage.Format("Hour is %d, Minute is %d, ", Hour, Minute ); sc.AddMessageToLog(LogMessage, 0); gives message log output "Hour is 12, Minute is 10" consistently. Even when clock time has advanced to e.g. 02:14. The last time I shut down Sierra I had run Chart Replay so thought this could have been a cause, which is why I added the "SC thinks replay is running" output which does not appear in the message log. Have tried restarting Sierra Chart. Noticed this as several studies I use have logic based on the current time and it was all wrong this morning. I hadn't changed/recompiled anything since yesterday when I updated to v2021 pre release. Date Time Of Last Edit: 2019-12-05 08:19:59
|