Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:software:qview:qview_6:qcl_library:vc20mktime [2017/02/03 17:05] – [VC20MkTime] qem103 | en:software:qview:qview_6:qcl_library:vc20mktime [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VC20MkTime ====== | ||
+ | |||
+ | Passing the reference to a CALENDAR device the **VC20MkTime** function __gives the number of seconds elapsed from 1 January 00:00 of 1970 (Epoch Time) until the date introduced__.\\ | ||
+ | This data is useful to be able to make comparisons between dates.\\ | ||
+ | The function also runs day and month values greater than its natural limits (day > 31 or month > 12), automatically calculating the date. | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VC20MkTime (calendar, errorCode, seconds, dayOfWeek, dayOfYear )** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^ IN/ | ||
+ | | IN | ||
+ | | OUT | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | To enable a digital output (ofUscita01) when the date and current time exceeds a previously set date and time. | ||