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)
IDateTimeProvider (ITF) ¶ INTERFACE PUBLIC IDateTimeProvider EXTENDS __SYSTEM.IQueryInterface Provides access to the underlying system to get the current date and (UTC) time using the GetDateTime method. See: DateTimeProvider as a default implementation Methods: GetDateTime Structure: GetDateTime (Method)
IDateTimeProvider.GetDateTime (METH) ¶ METHOD GetDateTime : ULINT InOut: Scope Name Type Comment Return GetDateTime ULINT date and (UTC) time in milliseconds since 1.1.1970 00:00:00.000 Output eErrorID ERROR
Structs ¶ DateTime (Struct) Schedule (Struct) Segment (Struct) TimeZone (Struct)
DateTime (STRUCT) ¶ TYPE DateTime : 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 Europe: 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 Europe: 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 YEAR uiMonth MONTH uiDay DAY If Year = 0, then 1..5 1 => first day in this month, 5 => last day in this month uiHour HOUR uiMinute MINUTE uiSecond SECOND uiMilliseconds MILLISECOND eWeekday WEEKDAY
YEAR (ALIAS) ¶ TYPE YEAR : UINT (0..2106) 0 or 1970…2106
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 02.03.2023, 10:46:40 companyName string 3S-Smart Software Solutions GmbH libraryFile Util.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile Util.clean.json version version 2.0.0.0 ProjectInformation AutoResolveUnbound bool True OnlineHelp True Released True ShowSmartCodingInfo True LastModificationDateTime date 02.03.2023, 10:46:37 LibraryCategories library-category-list Application|Common Author string 3S - Smart Software Solutions GmbH Company System CompiledLibraryCompatibilityVersion CODESYS V3.5 SP15 Patch 4 DefaultNamespace Description See: Description DocFormat reStructuredText DocLanguages `` en, de`` Placeholder Util Project Util Title Util UnitTestingDefine TestUtilLibrary Version version 3.5.19.0