Top Method Summary
Options Name Purpose
DATETIME-TZ ConvertTimeZone (datetime, character) Converts Datetime to desired time zone
DATETIME-TZ ConvertTimeZone (datetime, TimeZonesEnum) Converting Datetime to desired time zone for Enum
DATETIME-TZ ConvertTimeZone (datetime-tz, character) Converting Datetime-Tz to another Datetime-Tz for Character
DATETIME-TZ ConvertTimeZone (datetime-tz, TimeZonesEnum) Converting Datetime-Tz to another Datetime-Tz for Enum
INTEGER GetTimeZoneOffset (character) Returns the offset from UTC in minutes of a time zone
INTEGER GetTimeZoneOffset (TimeZonesEnum) Returns the offset from UTC in minutes of a time zone
GetTimeZones (table) Returns a list of Time-Zones as a Temp-Table
GetTimeZonesSummer (table) Returns a list of Time-Zones as a TempTable valid for Summer
GetTimeZonesWinter (table) Returns a list of Time-Zones as a TempTable valid for Winter
ImportTimeZones () Imports time zones from the JSON file

Top Constructor Summary
Options Name Purpose
TimeZonesService () Constructor for the TimeZonesService


Method Detail
Top

DATETIME-TZ ConvertTimeZone (datetime, character)

Purpose: Converts Datetime to desired time zone
Notes:

Parameters:
pdtDatetime DATETIME
The source Datetime value
pcTimeZone CHARACTER
The time-zone code
Returns DATETIME-TZ
The converted Datetime-tz value
Top

DATETIME-TZ ConvertTimeZone (datetime, TimeZonesEnum)

Purpose: Converting Datetime to desired time zone for Enum
Notes:

Parameters:
pdtDatetime DATETIME
The source Datetime value
poTimeZone Consultingwerk.Framework.TimeZones.TimeZonesEnum
The time-zone code
Returns DATETIME-TZ
The converted Datetime-tz value
Top

DATETIME-TZ ConvertTimeZone (datetime-tz, character)

Purpose: Converting Datetime-Tz to another Datetime-Tz for Character
Notes:

Parameters:
pdtDatetime DATETIME-TZ
The source Datetime-tz value
pcTimeZone CHARACTER
The time-zone code
Returns DATETIME-TZ
The converted Datetime-tz value
Top

DATETIME-TZ ConvertTimeZone (datetime-tz, TimeZonesEnum)

Purpose: Converting Datetime-Tz to another Datetime-Tz for Enum
Notes:

Parameters:
pdtDatetime DATETIME-TZ
The source Datetime-tz value
poTimeZone Consultingwerk.Framework.TimeZones.TimeZonesEnum
The time-zone code
Returns DATETIME-TZ
The converted Datetime-tz value
Top

INTEGER GetTimeZoneOffset (character)

Purpose: Returns the offset from UTC in minutes of a time zone
Notes: SCL-5989. The offset is the fixed offset of the time zone code
(e.g. 120 for CEST, 60 for CET), it does not account for daylight
saving time. The result can be passed to the ABL DATETIME-TZ
function or to DataTypeHelper:DateTimeTzFromDateAndSeconds.
Returns ? when the time zone code is unknown or empty, throws an
InvalidParameterValueException for a code that is not defined

Parameters:
pcTimeZone CHARACTER
The time-zone code
Returns INTEGER
The offset from UTC in minutes
Top

INTEGER GetTimeZoneOffset (TimeZonesEnum)

Purpose: Returns the offset from UTC in minutes of a time zone
Notes: SCL-5989. The offset is the fixed offset of the time zone code
(e.g. 120 for CEST, 60 for CET), it does not account for daylight
saving time. The result can be passed to the ABL DATETIME-TZ
function or to DataTypeHelper:DateTimeTzFromDateAndSeconds.
Returns ? when the time zone is not a valid object

Parameters:
poTimeZone Consultingwerk.Framework.TimeZones.TimeZonesEnum
The time-zone code
Returns INTEGER
The offset from UTC in minutes
Top

GetTimeZones (table)

Purpose: Returns a list of Time-Zones as a Temp-Table
Notes:

Parameters:
ttTimeZones TEMP-TABLE ttTimeZones
OUTPUT Temp-Table with Time-Zones
Top

GetTimeZonesSummer (table)

Purpose: Returns a list of Time-Zones as a TempTable valid for Summer
Notes:

Parameters:
ttTimeZones TEMP-TABLE ttTimeZones
OUTPUT Temp-Table with Time-Zones
Top

GetTimeZonesWinter (table)

Purpose: Returns a list of Time-Zones as a TempTable valid for Winter
Notes:

Parameters:
ttTimeZones TEMP-TABLE ttTimeZones
OUTPUT Temp-Table with Time-Zones
Top

ImportTimeZones ()

Purpose: Imports time zones from the JSON file
Notes: Uses the file referenced in the "TimeZonesDefinition" of
the application settings file or defaults to Consultingwerk/Framework/TimeZones/timezones.json.
The default is spelled exactly like the file (lower case), file names
are case-sensitive on Linux / PASOE (SCL-5989)



Constructor Detail
Top

TimeZonesService ()

Purpose: Constructor for the TimeZonesService
Notes:



Temp-Table Detail

Temp-Table ttTimeZones

Defined in:


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2026 08:05:03