DateTimeSplit (FB)¶
FUNCTION_BLOCK DateTimeSplit
DateTimeSplit splits a date/time information in ms since the epoch 1.1.1970 00:00:00.0 into the components of a point in time.
This function block is intended to be used to visualize WarpClock date/time information during development / debugging.
- InOut:
Scope
Name
Type
Comment
Input
uliDateTime
ULINT
Start time in ms since the epoch 1.1.1970 00:00:00.0, default is the epoch
Output
uiYear
Util.YEAR
uiMonth
Util.MONTH
uiDay
Util.DAY
uiHour
Util.HOUR
uiMinute
Util.MINUTE
uiSecond
Util.SECOND
uiMilliseconds
Util.MILLISECOND
eWeekday
Util.WEEKDAY