clockTimeToLinsec (Function) |
Top Previous Next |
This function can be used to convert a time in year, month, day, hour, minute, and second format to number of seconds since 1980-1-1 00:00:00.
Input: year : INT (-1, 1980 .. 2048) (Default -1) The current year.
month : SINT (-1, 1 .. 12) (Default -1) The current month.
day : SINT (-1, 1 .. 31) (Default -1) The current date.
hour: SINT (-1 .. 23) (Default -1) The current hour.
minute : SINT (-1 .. 59) (Default -1) The current minute.
second : SINT (-1 .. 59) (Default -1) The current second.
Returns: DINT The specified time in seconds since 1980-1-1 00:00:00.
Declaration: FUNCTION clockTimeToLinsec : DINT;
Example: INCLUDE rtcu.inc |