Skip to main content

TcxSchedulerDateTimeHelper.ConvertToGlobalTime(TDateTime,Integer) Method

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

Declaration

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

Parameters

Name Type
ADateTime TDateTime
ATimeZone Integer

Returns

Type
TDateTime

Remarks

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

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

The ATimeZone parameter specifies the source time zone.

Note

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

See Also