Login Page - Create Account

Support Board


Date/Time: Thu, 26 Jun 2025 03:28:19 +0000



Post From: ACSIL: Comparing difference of 2 SCDateTime variables to a time value?

[2021-12-03 12:55:39]
ycomp - Posts: 324
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