User Tools

Site Tools


faq33

SCADA software LAquis FAQ | SCADA software

Question: How to work with time and date?

Answer:

Date and time can be a number. Windows format int part days and fractional part time 1/24/60/60/1000 milisseconds. This number can be formatted with dd/mm/yyyy hh:nn:ss string. (Ex: displaytext, edit, reports format, etc…)

In script:

x = Now ' get current date / time
....
if frac(Now)>strtotime("07:00:00") then ' if time is > 07:00 pm
....
end if
....
....
if Day(Now)=3 then ' if current day is 3
....
end if
....

SCADA software

faq33.txt · Last modified: 2016/09/01 00:44 by scadalaquis

Page Tools


Tags: SCADA software , SCADA systems.