The Library SysLibTime.
lib
The Library SysLibTime.lib
ThisLibrary contains functions This library provides function blocks for reading the realtime clock of the
local computer:
CurTime
CurTimeEx
Used structures:
SystemTime
SysTime64
CurTime
This function block provides the value of the realtime clock of the computer in microseconds; using the
structure SysTime64.
Input Variable Data type Description
SystemTime SysTime64 Realtime read from the local computer in
microseconds, see structure SysTime64
CurTimeEx
This function block provides extended information on the value of the realtime clock of the computer;
using the strucutre SystemTimeDate.
Input Variable Data type Description
SystemTime SysTime64 Realtime read from the local computer in
microseconds, see structure SysTime64
TimeDate SystemTimeDate Detailled information on the value of the
realtime clock of the computer, see
structure SystemTimeDate
3S Smart Software Solutions GmbH / 17.12.02 1
The Library SysLibTime.lib
Structure SysTime64
This structure contains the value of the realtime clock of the computer in microseconds. A Low- plus a
High-DWORD are used for that purpose, thus 64 Bit are available. The structure is used by the function
blocks CurTime and CurTimeEx.
Component Data type Description
ulLow DWORD Low DWORD of the realtime value (microseconds)
ulHigh DWORD High DWORD of the realtime value (microseconds)
Structure SystemTimeDate
This structure contains the following information the value of the realtime clock of the computer. It is used
by the function block CurTimeEx.
Component Data type Description
dwLowMSecs DWORD The realtime is returned in microseconds, using a Low
DWORD plus a High DWORD, see also in structure
SysTime64Structure_SysTime64>Proc
dwHighMsec DWORD
Year UINT Year, e.g. "2002"
Month UINT Month, e.g. "12"
Day UINT Day of month, e.g. "3"
Hour UINT Hour of the current day, e.g. "13"
Minute UINT Minutes of the current hour, e.g. "43"
Second UINT Seconds of the current minute, e.g. "15"
Milliseconds UINT Milliseconds of the current second, e.g. "649"
DayOfWeek UINT Day of the week, e.g. "2" (Monday = 1)
2 3S Smart Software Solutions GmbH / 17.12.02