Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxSchedulerDateTimeHelper.AddDSTInfo(Integer,Integer,TDateTime,TDateTime) Method

Creates custom DST rules for the specified year.

#Declaration

Delphi
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.

See Also