Difference between revisions of "Unit Timezone"

From Ultibo.org
Jump to: navigation, search
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
----
 
----
 +
 +
'''Ultibo Timezone interface unit'''
  
 
''To be documented''
 
''To be documented''

Revision as of 05:00, 19 December 2016

Return to Unit Reference


Description


Ultibo Timezone interface unit

To be documented

Constants



[Expand]
Timezone specific constants TIME_ZONE_*


[Expand]
Timezone signature constants TIMEZONE_SIGNATURE_*


Type definitions


To be documented

Public variables


To be documented

Function declarations


Initialization functions

[Expand]
procedure TimezoneInit;
Description: To be documented


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 TimezoneDelete(Timezone:PTimezoneEntry):LongWord;
Description: To be documented


[Expand]
function TimezoneGetName(Timezone:PTimezoneEntry):String;
Description: To be documented


[Expand]
function TimezoneGetDescription(Timezone:PTimezoneEntry):String;
Description: To be documented


[Expand]
function TimezoneGetBias(Timezone:PTimezoneEntry):LongInt;
Description: To be documented


[Expand]
function TimezoneGetState(Timezone:PTimezoneEntry):LongWord;
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):TSystemTime;
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):TSystemTime;
Description: To be documented


[Expand]
function TimezoneFind(const Name:String):PTimezoneEntry;
Description: To be documented


[Expand]
function TimezoneEnumerate(Callback:TTimezoneEnumerate; Data:Pointer):LongWord;
Description: To be documented


Timezone helper functions

[Expand]
function TimezoneGetCount:LongWord; inline;
Description: Get the current timezone count


[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 TimezoneUpdateOffset:LongWord;
Description: To be documented


[Expand]
function TimezoneStartToDateTime(const AStart:TSystemTime; AYear:Word):TDateTime;
Description: Calculate the start date and time from the start date of a timezone


[Expand]
function TimezoneStartToDescription(const AStart:TSystemTime):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