Support Board
Date/Time: Sun, 19 Jan 2025 06:31:00 +0000
Post From: sc.TimeScaleAdjustment for previous Index
[2018-03-19 08:42:46] |
User612903 - Posts: 51 |
Hello, In a custom study I'm getting the current UTC datetime like this : sc.DateTimeToString((sc.BaseDateTimeIn[sc.Index] - sc.TimeScaleAdjustment), FLAG_DT_COMPLETE_DATETIME_MS);
This work fine. But now if I get the datetime of "Index-3" like this : sc.DateTimeToString((sc.BaseDateTimeIn[sc.Index-3] - sc.TimeScaleAdjustment), FLAG_DT_COMPLETE_DATETIME_MS);
If daylight saving changed between "Index-3" and "Index" then the result is not correct. Is there a way to access something like : sc.TimeScaleAdjustment[sc.Index-3]
Thanks a lot for your help, Regards Date Time Of Last Edit: 2018-03-19 10:58:35
|