Support Board
Date/Time: Thu, 13 Feb 2025 10:02:05 +0000
[Programming Help] - SECONDS constant no longer defined
View Count: 611
[2020-12-01 16:26:43] |
WarriorTrader - Posts: 245 |
Hello, The SECONDS constant is no longer defined in SC v2204. Is there a quick way to add seconds to the time? I guess just adding (1) to TimeValue will have the same effect since time is stored in number of seconds after midnight? int TimeValue2 = sc.StartTime1; int TimeValue = TimeValue2 += 1 * SECONDS; // no longer working Revised for current verison: int TimeValue2 = sc.StartTime1; int TimeValue = TimeValue2 += 1; //SECONDS removed Thanks, --WT |
[2020-12-01 16:32:03] |
User907968 - Posts: 826 |
The SECONDS constant is no longer defined in SC v2204.
You can read about it here - https://www.sierrachart.com/index.php?page=doc/Whats_New.php#SCVer2156 More information here - Required SCDateTime Changes for ACSIL |
[2020-12-01 23:58:22] |
|
There is a new member function for this: Working with the SCDateTime Variables and Values: SECONDS() Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: