Login Page - Create Account

Support Board


Date/Time: Thu, 13 Mar 2025 16:22:42 +0000



Post From: Compare times, so conditional is only triggered outside of certain time segment

[2022-05-24 21:47:47]
Tony - Posts: 553
startTime variable needs to be initialized with year/month/day, otherwise it just has the init. values: 1899 Dec. 30th.

It doesn't matter if you just want compare time portion only, but your code is comparing the two sc.DateTime variables as a whole, which including date and time

You have access to current date and time with variable sc.CurrentSystemDateTime, sc.BaseDateTimeIn[sc.Index] won't give you the current time, most of the times (sc.BaseDataEndDateTime[sc.Index] would be a much better choice, but still does not 100% match the current date and time)
Date Time Of Last Edit: 2022-05-25 05:53:13