Support Board
Date/Time: Tue, 04 Mar 2025 14:53:06 +0000
[Programming Help] - ACSIL: Comparing difference of 2 SCDateTime variables to a time value?
View Count: 894
[2021-12-03 12:55:39] |
ycomp - Posts: 321 |
How do I compare the time difference of 2 SCDateTime variables to a Time Value (e.g. sc.Input[0].GetTime() ) ? SCDateTime date1; SCDateTime dateTimeDiff = sc.LatestDateTimeForLastBar - date1; dateTimeDiff.HowToGetTotalSecondsAsATimeValue()? <= sc.Input[0].GetTime() Date Time Of Last Edit: 2021-12-03 18:52:37
|
[2021-12-09 16:36:37] |
ycomp - Posts: 321 |
what I mean is something like this: left side variables are SCDateTime and right side variable is SCInputRef containing a Time value (sc.LatestDateTimeForLastBar - LastModified).GetTime() <= Input_Duration.GetTime()
will it work if the 2 dates are not the same day (e.g. today and yesterday) ? Date Time Of Last Edit: 2021-12-09 16:36:57
|
To post a message in this thread, you need to log in with your Sierra Chart account: