Skip to main content

TcxSchedulerDateTimeHelper.ConvertToAnotherTimeZone(TDateTime,Integer,Integer) Method

Converts the ATimeZone time zone’s time into the ANextTimeZone time zone’s time.

Declaration

class function ConvertToAnotherTimeZone(const ADateTime: TDateTime; ATimeZone: Integer; ANextTimeZone: Integer): TDateTime;

Parameters

Name Type
ADateTime TDateTime
ATimeZone Integer
ANextTimeZone Integer

Returns

Type
TDateTime

Remarks

Use the ConvertToAnotherTimeZone method to convert the ATimeZone time zone’s time into the time of the ANextTimeZone time zone.

The ADateTime parameter specifies the ATimeZone time zone’s date and time;

The ATimeZone and ANextTimeZone parameters specify the source and target time zones, respectively.

See Also