Difference between revisions of "Unit Timezone"
Line 464: | Line 464: | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
− | <pre style="border: 0; padding-bottom:0px;">function TimezoneGetCount:LongWord | + | <pre style="border: 0; padding-bottom:0px;">function TimezoneGetCount:LongWord;</pre> |
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' Get the current timezone count</div> | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' Get the current timezone count</div> | ||
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
Line 476: | Line 476: | ||
<br /> | <br /> | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
− | <pre style="border: 0; padding-bottom:0px;">function TimezoneGetDefault:PTimezoneEntry | + | <pre style="border: 0; padding-bottom:0px;">function TimezoneGetDefault:PTimezoneEntry;</pre> |
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' Get the current default timezone</div> | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' Get the current default timezone</div> | ||
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> |
Revision as of 02:34, 15 December 2022
Return to Unit Reference
Description
Ultibo Timezone Interface unit
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_*
TIMEZONE_SIGNATURE = $ED9A1BC3;
|
Type definitions
System time
LPSYSTEMTIME = SysUtils.LPSYSTEMTIME;
SYSTEMTIME = SysUtils.SYSTEMTIME;
TSystemTime = SysUtils.TSystemTime;
PSystemTime = SysUtils.PSystemTime;
_SYSTEMTIME = SysUtils.SYSTEMTIME;
wYear:Word;
|
|
wMonth:Word;
|
|
wDayOfWeek:Word;
|
|
wDay:Word;
|
|
wHour:Word;
|
|
wMinute:Word;
|
|
wSecond:Word;
|
|
wMilliseconds:Word;
|
Timezone information
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
Bias:LONG;
|
|
StandardName:array [0..31] of WCHAR;
|
|
StandardDate:SYSTEMTIME;
|
|
StandardBias:LONG;
|
|
DaylightName:array [0..31] of WCHAR;
|
|
DaylightDate:SYSTEMTIME;
|
|
DaylightBias:LONG;
|
Timezone data
PTimezoneData = ^TTimezoneData;
TTimezoneData = record
Name:String[32];
|
|
Description:String[64];
|
|
Bias:LongInt;
|
|
StandardName:String[32];
|
|
StandardBias:LongInt;
|
|
StandardStart:SYSTEMTIME;
|
|
DaylightName:String[32];
|
|
DaylightBias:LongInt;
|
|
DaylightStart:SYSTEMTIME;
|
Timezone enumeration callback
TTimezoneEnumerate = function(Timezone:PTimezoneEntry; Data:Pointer):LongWord;
|
Timezone entry
PTimezoneEntry = ^TTimezoneEntry;
TTimezoneEntry = record
Timezone Properties | |
Signature:LongWord;
|
Signature for entry validation |
Name:String;
|
|
Description:String;
|
|
Bias:LongInt;
|
|
StandardName:String;
|
|
StandardBias:LongInt;
|
|
StandardStart:SYSTEMTIME;
|
|
DaylightName:String;
|
|
DaylightBias:LongInt;
|
|
DaylightStart:SYSTEMTIME;
|
|
Internal Properties | |
Prev:PTimezoneEntry;
|
Previous entry in Timezone table |
Next:PTimezoneEntry;
|
Next entry in Timezone table |
Public variables
None defined
Function declarations
Initialization functions
procedure TimezoneInit;
Note | None documented |
---|
Timezone functions
function TimezoneAdd(Data:PTimezoneData; Default:Boolean):LongWord;
Note | None documented |
---|
function TimezoneDelete(Timezone:PTimezoneEntry):LongWord;
Note | None documented |
---|
function TimezoneGetName(Timezone:PTimezoneEntry):String;
Note | None documented |
---|
function TimezoneGetDescription(Timezone:PTimezoneEntry):String;
Note | None documented |
---|
function TimezoneGetBias(Timezone:PTimezoneEntry):LongInt;
Note | None documented |
---|
function TimezoneGetState(Timezone:PTimezoneEntry):LongWord;
Note | None documented |
---|
function TimezoneGetActiveBias(Timezone:PTimezoneEntry):LongInt;
Note | None documented |
---|
function TimezoneGetStandardName(Timezone:PTimezoneEntry):String;
Note | None documented |
---|
function TimezoneGetStandardBias(Timezone:PTimezoneEntry):LongInt;
Note | None documented |
---|
function TimezoneGetStandardDate(Timezone:PTimezoneEntry; Next:Boolean):TDateTime;
Note | None documented |
---|
function TimezoneGetStandardStart(Timezone:PTimezoneEntry):SYSTEMTIME;
Note | None documented |
---|
function TimezoneGetDaylightName(Timezone:PTimezoneEntry):String;
Note | None documented |
---|
function TimezoneGetDaylightBias(Timezone:PTimezoneEntry):LongInt;
Note | None documented |
---|
function TimezoneGetDaylightDate(Timezone:PTimezoneEntry; Next:Boolean):TDateTime;
Note | None documented |
---|
function TimezoneGetDaylightStart(Timezone:PTimezoneEntry):SYSTEMTIME;
Note | None documented |
---|
function TimezoneFind(const Name:String):PTimezoneEntry;
Note | None documented |
---|
function TimezoneEnumerate(Callback:TTimezoneEnumerate; Data:Pointer):LongWord;
Note | None documented |
---|
Timezone helper functions
function TimezoneGetCount:LongWord;
Note | None documented |
---|
function TimezoneGetDefault:PTimezoneEntry;
Note | None documented |
---|
function TimezoneSetDefault(Timezone:PTimezoneEntry):LongWord;
Note | None documented |
---|
function TimezoneCheck(Timezone:PTimezoneEntry):PTimezoneEntry;
Note | None documented |
---|
function TimezoneUpdateOffset:LongWord;
Note | None documented |
---|
function TimezoneStartToDateTime(const AStart:SYSTEMTIME; AYear:Word):TDateTime;
Note | None documented |
---|
function TimezoneStartToDescription(const AStart:SYSTEMTIME):String;
Note | None documented |
---|
function TimezoneNameReplaceChar(const AName:String; AChar,AReplace:Char):String;
Note | None documented |
---|
Return to Unit Reference