Skip to main content

TcxSchedulerDateTimeHelper.ConvertToLocalTime(TDateTime,Integer) Method

Converts a UTC time into the ATimeZone time zone’s time.

Declaration

class function ConvertToLocalTime(const ADateTime: TDateTime; ATimeZone: Integer = -1): TDateTime; virtual;

Parameters

Name Type
ADateTime TDateTime
ATimeZone Integer

Returns

Type
TDateTime

Remarks

Use the ConvertToLocalTime method to convert the UTC (coordinated universal time) time into the ATimeZone time zone’s time.

The ADateTime parameter specifies the UTC date and time;

The ATimeZone parameter specifies the target time zone.

Note

if the ATimeZone parameter is not specified the current host environment’s settings are used.

See Also