RTCLK_SYSTEMTIME (STRUCT)

TYPE RTCLK_SYSTEMTIME : STRUCT

Two formats are supported:

  • Absolute format: defines an exact time. “uiYear”, “uiMonth”, “uiDay”, “uiHour”, “uiMinute” and “uiSecond” define the exact time. "uiWeekday” is of no importance.

  • Day of the month format: is selected by setting ”uiYear” to 0. „uiWeekday“ defines a weekday and “uiDay” specifies the day of the month in a value range of 1..5. This notation makes it possible to define the first Sunday in April as well as the last Thursday in October (“uiDay” = 1 corresponds to the first weekday in a month, “uiDay” = 5 corresponds to the last weekday in a month)

Note

The following applies for the summer time in Germany: The switch to summer time is done on the last Sunday in March. At 2:00 a.m. the clock is set ahead by one hour. The following applies for the winter time (standard time) in Germany: The switch to winter time is done on the last Sunday in October. At 3:00 a.m. the clock is set back by one hour.

InOut:

Name

Type

Comment

uiYear

UINT

1970..1099

uiMonth

UINT

1..12 1 => January

eWeekday

WEEKDAY

0 Sunday .. 6 Saturday

uiDay

UINT

1..31 day in this Moth or 1..5 1=> first day in this month 5 => last day in this month

uiHour

UINT

0..24

uiMinute

UINT

0..59

uiSecond

UINT

0..59