Namespace: Consultingwerk.Framework.TimeZones
Class 
TimeZonesService Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Framework.TimeZones.ITimeZoneService

File:TimeZonesService
Author(s):Deniz Werth / Consultingwerk Ltd.
Created:Thu Nov 25 16:16:18 CET 2021



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
+ 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

PUBLIC 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

PUBLIC 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

PUBLIC 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

PUBLIC 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

PUBLIC 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

PUBLIC 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

PUBLIC 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

PROTECTED 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



Constructor Detail
Top

PUBLIC TimeZonesService ()

Purpose: Constructor for the TimeZonesService
Notes:



Temp-Table Detail

Temp-Table ttTimeZones

Defined in:


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 12:59:16