Now i have to find βHow to get the system date and timeβ
I download βdate timeβ. In store library.
Can you guide me , how can i program to get date and time.
My application , set up time to open /close lamps in my house.
Example
Lamp on 18:00 to 5:00,
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Originally created by: toatan.th@gmail.com
Now i have to find βHow to get the system date and timeβ
Hello,
VAR
fbGetSystemTime : GETSYSTEMTIME;
fileTime : T_FILETIME;
sTime : STRING;
END_VAR
fbGetSystemTime(timeLoDW=>fileTime.dwLowDateTime, timeHiDW=>fileTime.dwHighDateTime );
sTime := SYSTEMTIME_TO_STRING( FILETIME_TO_SYSTEMTIME(fileTime));