Difference between revisions of "Unit Timezone"
From Ultibo.org
Line 10: | Line 10: | ||
---- | ---- | ||
− | '' | + | |
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Timezone specific constants''' <code> TIME_ZONE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>TIME_ZONE_ID_UNKNOWN = 0;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | | <code>TIME_ZONE_ID_STANDARD = 1;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>TIME_ZONE_ID_DAYLIGHT = 2;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>TIME_ZONE_ID_INVALID = DWORD($FFFFFFFF);</code> | ||
+ | | | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;"> | ||
+ | <div style="font-size: 14px; padding-left: 12px;">'''Timezone signature constants''' <code> TIMEZONE_SIGNATURE_* </code></div> | ||
+ | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
+ | {| class="wikitable" style="font-size: 14px; background: white;" | ||
+ | |- | ||
+ | | <code>TIMEZONE_SIGNATURE = $ED9A1BC3;</code> | ||
+ | | style="width: 50%;"| | ||
+ | |- | ||
+ | |} | ||
+ | </div></div> | ||
+ | <br /> | ||
=== Type definitions === | === Type definitions === |
Revision as of 04:43, 25 November 2016
Return to Unit Reference
Description
To be documented
Constants
Timezone specific constants
TIME_ZONE_*
TIME_ZONE_ID_UNKNOWN = 0;
|
|
TIME_ZONE_ID_STANDARD = 1;
|
|
TIME_ZONE_ID_DAYLIGHT = 2;
|
|
TIME_ZONE_ID_INVALID = DWORD($FFFFFFFF);
|
Timezone signature constants
TIMEZONE_SIGNATURE_*
TIMEZONE_SIGNATURE = $ED9A1BC3;
|
Type definitions
To be documented
Public variables
To be documented
Function declarations
Initialization functions
procedure TimezoneInit;
Description: To be documented
Note | None documented |
---|
Timezone functions
function TimezoneAdd(Data:PTimezoneData; Default:Boolean):LongWord;
Description: Add a Timezone from a timezone data block and to the Timezone table
Note | None documented |
---|
function TimezoneDelete(Timezone:PTimezoneEntry):LongWord;
Description: To be documented
Note | None documented |
---|
function TimezoneGetName(Timezone:PTimezoneEntry):String;
Description: To be documented
Note | None documented |
---|
function TimezoneGetDescription(Timezone:PTimezoneEntry):String;
Description: To be documented
Note | None documented |
---|
function TimezoneGetBias(Timezone:PTimezoneEntry):LongInt;
Description: To be documented
Note | None documented |
---|
function TimezoneGetState(Timezone:PTimezoneEntry):LongWord;
Description: To be documented
Note | None documented |
---|
function TimezoneGetActiveBias(Timezone:PTimezoneEntry):LongInt;
Description: To be documented
Note | None documented |
---|
function TimezoneGetStandardName(Timezone:PTimezoneEntry):String;
Description: To be documented
Note | None documented |
---|
function TimezoneGetStandardBias(Timezone:PTimezoneEntry):LongInt;
Description: To be documented
Note | None documented |
---|
function TimezoneGetStandardDate(Timezone:PTimezoneEntry; Next:Boolean):TDateTime;
Description: To be documented
Note | None documented |
---|
function TimezoneGetStandardStart(Timezone:PTimezoneEntry):TSystemTime;
Description: To be documented
Note | None documented |
---|
function TimezoneGetDaylightName(Timezone:PTimezoneEntry):String;
Description: To be documented
Note | None documented |
---|
function TimezoneGetDaylightBias(Timezone:PTimezoneEntry):LongInt;
Description: To be documented
Note | None documented |
---|
function TimezoneGetDaylightDate(Timezone:PTimezoneEntry; Next:Boolean):TDateTime;
Description: To be documented
Note | None documented |
---|
function TimezoneGetDaylightStart(Timezone:PTimezoneEntry):TSystemTime;
Description: To be documented
Note | None documented |
---|
function TimezoneFind(const Name:String):PTimezoneEntry;
Description: To be documented
Note | None documented |
---|
function TimezoneEnumerate(Callback:TTimezoneEnumerate; Data:Pointer):LongWord;
Description: To be documented
Note | None documented |
---|
Timezone helper functions
function TimezoneGetCount:LongWord; inline;
Description: Get the current timezone count
Note | None documented |
---|
function TimezoneGetDefault:PTimezoneEntry; inline;
Description: Get the current default timezone
Note | None documented |
---|
function TimezoneSetDefault(Timezone:PTimezoneEntry):LongWord;
Description: Set the current default timezone
Note | None documented |
---|
function TimezoneCheck(Timezone:PTimezoneEntry):PTimezoneEntry;
Description: Check if the supplied Timezone is in the Timezone table
Note | None documented |
---|
function Timezone?pdateOffset:LongWord;
Description: To be documented
Note | None documented |
---|
function TimezoneStartToDateTime(const AStart:TSystemTime; AYear:Word):TDateTime;
Description: Calculate the start date and time from the start date of a timezone
Note | None documented |
---|
function TimezoneStartToDescription(const AStart:TSystemTime):String;
Description: Get the description of the start date of a timezone
Note | None documented |
---|
function TimezoneNameReplaceChar(const AName:String; AChar,AReplace:Char):String;
Description: Same as ReplaceChar in UltiboUtils, reproduced here to avoid including extra units
Note | None documented |
---|
Return to Unit Reference