JoinDateTime (FUN) ¶ FUNCTION JoinDateTime : ULINT Returns a timestamp in milliseconds since 1.1.1970 00:00:00.000 calculated out of the parameters InOut: Scope Name Type Initial Comment Return JoinDateTime ULINT date and time in milliseconds since 1.1.1970 00:00:00.000 Input uiYear YEAR 1970..2106 uiMonth MONTH uiDay DAY uiHour HOUR uiMinute MINUTE uiSecond SECOND uiMilliseconds MILLISECOND Output eErrorID ERROR ERROR.NO_ERROR
LocalDateTime (FUN) ¶ FUNCTION LocalDateTime : ULINT Based on the inputs uliDateTime and tzTimeZone the corresponding local time is calculated InOut: Scope Name Type Comment Return LocalDateTime ULINT The current period and the local date and time in milliseconds since 1.1.1970 00:00:00.000 Inout Const tzTimeZone TimeZone Time zone as base for caclulating local time Input uliDateTime ULINT UTC timestamp in milliseconds since 1.1.1970 00:00:00.000 See: IDateTimeProvider.GetDateTime or GetDateTime Output eErrorID ERROR ePeriod PERIOD
SeparateDateTime (FUN) ¶ FUNCTION SeparateDateTime : ERROR Separates a timestamp in its IEC data typed parts. InOut: Scope Name Type Return SeparateDateTime ERROR Input uliDateTime ULINT Output eWeekDay WEEKDAY datDate DATE todTime TOD
SplitDateTime (FUN) ¶ FUNCTION SplitDateTime : ERROR Splitting a timestamp into the components of a point in time. InOut: Scope Name Type Comment Return SplitDateTime ERROR Input uliDateTime ULINT Output uiYear YEAR 1970..2106 uiMonth MONTH uiDay DAY uiHour HOUR uiMinute MINUTE uiSecond SECOND uiMilliseconds MILLISECOND eWeekday WEEKDAY
WeekOfYear (FUN) ¶ FUNCTION WeekOfYear : ERROR Calculates the appropriate values of the ISO week date parts that matches the parameter uliDateTime . WeekOfYear(JoinDateTime(2008, 12, 29, 0, 0, 0, 0)) => uiYear:=2009 , uiWeek:=1, eWeekday:=WEEKDAY.MONDAY WeekOfYear(JoinDateTime(2010, 1, 3, 0, 0, 0, 0)) => uiYear:=2009 , uiWeek:=53, eWeekday:=WEEKDAY.SUNDAY See: https://en.wikipedia.org/wiki/ISO_week_date InOut: Scope Name Type Return WeekOfYear ERROR Input uliDateTime ULINT Output uiYear YEAR uiWeek WEEK eWeekday WEEKDAY
GlobalConstants ¶ DAY_FLAGS (GVL) TSW (GVL)
DAY_FLAGS (GVL) ¶ Attributes: qualified_only InOut: Scope Name Type Initial Constant EVERY_DAY DAYS 0 WORKING_DAYS DAYS 31 WEEKEND DAYS 96 MONDAY DAYS 1 TUESDAY DAYS 2 WEDNESDAY DAYS 4 THURSDAY DAYS 8 FRIDAY DAYS 16 SATURDAY DAYS 32 SUNDAY DAYS 64
TSW (GVL) ¶ Attributes: qualified_only InOut: Scope Name Type Initial Comment Constant gc_tzTimeZoneCET TimeZone STRUCT(iBias := 60, asgPeriod := [STRUCT(sName := ‘CET’, dtDate := STRUCT(uiMonth := 10, eWeekday := WEEKDAY.SUNDAY, uiDay := 5, uiHour := 3)), STRUCT(sName := ‘CEST’, dtDate := STRUCT(uiMonth := 3, eWeekday := WEEKDAY.SUNDAY, uiDay := 5, uiHour := 2), iBias := 60)]) Central Europe Time gc_tzTimeZoneUTC TimeZone STRUCT(asgPeriod := [STRUCT(sName := ‘UTC’)]) Coordinated Universal Time
Interfaces ¶ IDateTimeProvider (Interface) GetDateTime (Method)
WEEK (ALIAS) ¶ TYPE WEEK : UINT (1..53)