TcxSchedulerDateTimeHelper.AddDSTInfo(Integer,Integer,TDateTime,TDateTime) Method
Creates custom DST rules for the specified year.
Declaration
class function AddDSTInfo(const ATimeZone: Integer; const AYear: Integer; const AStandardDate: TDateTime; const ADaylightDate: TDateTime): Integer; overload;
Parameters
Name | Type |
---|---|
ATimeZone | Integer |
AYear | Integer |
AStandardDate | TDateTime |
ADaylightDate | TDateTime |
Returns
Type |
---|
Integer |
Remarks
The AddDSTInfo method writes data to the scheduler DateTimeHelper.TimeZoneInfo‘s DynamicDST array.
ATimeZoneInfo references the TcxTimeZoneInformation record.
ATimeZone specifies the time zone’s number. If -1 is passed via the parameter, the method obtains the time zone’s number from the system’s locale settings.
AYear specifies the year in which the time transition will be performed.
AStandardDate specifies the time when the transition from standard time to daylight saving time will be performed.
ADaylightDate specifies the time when the transition from standard time to daylight saving time will be performed.
The method returns a newly allocated space in the TcxTimeZoneInformation‘s DynamicDST array for the specified data.