Irregular schedule -- daylight/standard time

Need new test, action, option? Post request here.
Post Reply
rasqual78

Irregular schedule -- daylight/standard time

Post by rasqual78 »

I have ODBC tests that query SQL to be sure updates are constantly occuring in a GPS tracking system. The check is looking for data inserted during the last 20 minutes -- but the date recorded is Universal Time. Therefore, unless I actively change a value I'm using for date math (in our summer it would need to be 4:40, in our winter it would need to be 5:40), the test will test data during the last 1:20 in the winter.

I'd like to either enable two different tests only during their respective half of the year -- but do so automatically -- or be able to use some variable in the SQL query itself that will cull the time difference from the system offset. Good grief. This one's tough.

If the test settings were machine-editable somewhere I'd just edit the setting programmatically.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Variable that represents daylight offset? But what exactly it should return? 0 or 1? I think SQL does not allow expressions like "11:40-1".
Probably its better to add variable like %Time_GMT%, %DateTime_GMT%?

Regards
Alex
Post Reply