0% found this document useful (0 votes)
287 views2 pages

Sys Lib Time

This library provides two function blocks for reading the real-time clock of the local computer. The CurTime function block returns the clock value in microseconds using the SysTime64 structure. The CurTimeEx function block returns extended clock information using the SystemTimeDate structure, including time, date, milliseconds and day of week.

Uploaded by

Abdelali Khalil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
287 views2 pages

Sys Lib Time

This library provides two function blocks for reading the real-time clock of the local computer. The CurTime function block returns the clock value in microseconds using the SysTime64 structure. The CurTimeEx function block returns extended clock information using the SystemTimeDate structure, including time, date, milliseconds and day of week.

Uploaded by

Abdelali Khalil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like