Difference between revisions of "Unit Timezone"
Line 52: | Line 52: | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial;"> | ||
− | <code>LPSYSTEMTIME = | + | <code>LPSYSTEMTIME = SysUtils.LPSYSTEMTIME;</code> |
− | <code>SYSTEMTIME = | + | <code>SYSTEMTIME = SysUtils.SYSTEMTIME;</code> |
− | <code>TSystemTime = | + | <code>TSystemTime = SysUtils.TSystemTime;</code> |
− | <code>PSystemTime = | + | <code>PSystemTime = SysUtils.PSystemTime;</code> |
− | <code>_SYSTEMTIME = | + | <code>_SYSTEMTIME = SysUtils.SYSTEMTIME;</code> |
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" |
Revision as of 03:17, 9 August 2019
Return to Unit Reference
Contents
[hide]Description
Ultibo Timezone interface unit
To be documented
Constants
TIME_ZONE_*
TIMEZONE_SIGNATURE_*
Type definitions
System time
LPSYSTEMTIME = SysUtils.LPSYSTEMTIME;
SYSTEMTIME = SysUtils.SYSTEMTIME;
TSystemTime = SysUtils.TSystemTime;
PSystemTime = SysUtils.PSystemTime;
_SYSTEMTIME = SysUtils.SYSTEMTIME;
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
Timezone data
Timezone enumeration callback
TTimezoneEnumerate = function(Timezone:PTimezoneEntry; Data:Pointer):LongWord;
|
Timezone entry
Public variables
None defined
Function declarations
Initialization functions
Timezone functions
function TimezoneAdd(Data:PTimezoneData; Default:Boolean):LongWord;
function TimezoneGetDescription(Timezone:PTimezoneEntry):String;
function TimezoneGetActiveBias(Timezone:PTimezoneEntry):LongInt;
function TimezoneGetStandardName(Timezone:PTimezoneEntry):String;
function TimezoneGetStandardBias(Timezone:PTimezoneEntry):LongInt;
function TimezoneGetStandardDate(Timezone:PTimezoneEntry; Next:Boolean):TDateTime;
function TimezoneGetStandardStart(Timezone:PTimezoneEntry):SYSTEMTIME;
function TimezoneGetDaylightName(Timezone:PTimezoneEntry):String;
function TimezoneGetDaylightBias(Timezone:PTimezoneEntry):LongInt;
function TimezoneGetDaylightDate(Timezone:PTimezoneEntry; Next:Boolean):TDateTime;
function TimezoneGetDaylightStart(Timezone:PTimezoneEntry):SYSTEMTIME;
function TimezoneEnumerate(Callback:TTimezoneEnumerate; Data:Pointer):LongWord;
Timezone helper functions
function TimezoneGetDefault:PTimezoneEntry; inline;
function TimezoneSetDefault(Timezone:PTimezoneEntry):LongWord;
function TimezoneCheck(Timezone:PTimezoneEntry):PTimezoneEntry;
function TimezoneStartToDateTime(const AStart:SYSTEMTIME; AYear:Word):TDateTime;
function TimezoneStartToDescription(const AStart:SYSTEMTIME):String;
function TimezoneNameReplaceChar(const AName:String; AChar,AReplace:Char):String;
Return to Unit Reference