Unit Timezone
From Ultibo.org
Return to Unit Reference
Contents
[hide]Description
Ultibo Timezone interface unit
To be documented
Constants
[Expand]
Timezone specific constants
TIME_ZONE_*
[Expand]
Timezone signature
TIMEZONE_SIGNATURE_*
Type definitions
System time
[Expand]
LPSYSTEMTIME = ^SYSTEMTIME;
SYSTEMTIME = _SYSTEMTIME;
TSystemTime = SYSTEMTIME;
PSystemTime = LPSYSTEMTIME;
_SYSTEMTIME = record
Timezone information
[Expand]
TIME_ZONE_INFORMATION = _TIME_ZONE_INFORMATION;
LPTIME_ZONE_INFORMATION = ^TIME_ZONE_INFORMATION;
TTimeZoneInformation = TIME_ZONE_INFORMATION;
PTimeZoneInformation = PTIME_ZONE_INFORMATION;
PTIME_ZONE_INFORMATION = ^TIME_ZONE_INFORMATION;
_TIME_ZONE_INFORMATION = record
Timezone data
Timezone enumeration callback
TTimezoneEnumerate = function(Timezone:PTimezoneEntry; Data:Pointer):LongWord;
|
Timezone entry
Public variables
None defined
Function declarations
Initialization functions
Timezone functions
[Expand]
function TimezoneAdd(Data:PTimezoneData; Default:Boolean):LongWord;
Description: Add a Timezone from a timezone data block and to the Timezone table
[Expand]
function TimezoneGetDescription(Timezone:PTimezoneEntry):String;
Description: To be documented
[Expand]
function TimezoneGetActiveBias(Timezone:PTimezoneEntry):LongInt;
Description: To be documented
[Expand]
function TimezoneGetStandardName(Timezone:PTimezoneEntry):String;
Description: To be documented
[Expand]
function TimezoneGetStandardBias(Timezone:PTimezoneEntry):LongInt;
Description: To be documented
[Expand]
function TimezoneGetStandardDate(Timezone:PTimezoneEntry; Next:Boolean):TDateTime;
Description: To be documented
[Expand]
function TimezoneGetStandardStart(Timezone:PTimezoneEntry):SYSTEMTIME;
Description: To be documented
[Expand]
function TimezoneGetDaylightName(Timezone:PTimezoneEntry):String;
Description: To be documented
[Expand]
function TimezoneGetDaylightBias(Timezone:PTimezoneEntry):LongInt;
Description: To be documented
[Expand]
function TimezoneGetDaylightDate(Timezone:PTimezoneEntry; Next:Boolean):TDateTime;
Description: To be documented
[Expand]
function TimezoneGetDaylightStart(Timezone:PTimezoneEntry):SYSTEMTIME;
Description: To be documented
[Expand]
function TimezoneEnumerate(Callback:TTimezoneEnumerate; Data:Pointer):LongWord;
Description: To be documented
Timezone helper functions
[Expand]
function TimezoneGetDefault:PTimezoneEntry; inline;
Description: Get the current default timezone
[Expand]
function TimezoneSetDefault(Timezone:PTimezoneEntry):LongWord;
Description: Set the current default timezone
[Expand]
function TimezoneCheck(Timezone:PTimezoneEntry):PTimezoneEntry;
Description: Check if the supplied Timezone is in the Timezone table
[Expand]
function TimezoneStartToDateTime(const AStart:SYSTEMTIME; AYear:Word):TDateTime;
Description: Calculate the start date and time from the start date of a timezone
[Expand]
function TimezoneStartToDescription(const AStart:SYSTEMTIME):String;
Description: Get the description of the start date of a timezone
[Expand]
function TimezoneNameReplaceChar(const AName:String; AChar,AReplace:Char):String;
Description: Same as ReplaceChar in UltiboUtils, reproduced here to avoid including extra units
Return to Unit Reference