You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking for functions to/from unix_time in PLCs
so I can do time_math such as what is the time-span
between two date_times and what is the date_time of
287 hours from now
Is it as simple as generating inversions of these functions to get
from time_stamp back to YYYY-MM-DD H:MM:SS ?
oh, and examples folder is 404
The text was updated successfully, but these errors were encountered:
Actually I'm not sure if I get your question right, sorry.
You want to get the time-span between to dates - that's actually quite simple by substract timestamp A from timestamp B and divide the result (= seconds between two datetimes) by 86400 (= 60sec/min x 60min/h x 24h/d).
Also you want the date_time of 287 hours from now which is just the current timestamp plus 287*3600 (=60sec/min x 60min/h).
I hope this is the answer to your questions, otherwise let me know.
Is it as simple as generating inversions of these functions to get
from time_stamp back to YYYY-MM-DD H:MM:SS ?
I am looking for functions to/from unix_time in PLCs
so I can do time_math such as what is the time-span
between two date_times and what is the date_time of
287 hours from now
Is it as simple as generating inversions of these functions to get
from time_stamp back to YYYY-MM-DD H:MM:SS ?
oh, and examples folder is 404
The text was updated successfully, but these errors were encountered: