System.DateUtils.TTimeZone.GetUtcOffset

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetUtcOffset(const ADateTime: TDateTime; const ForceDaylight: Boolean = False): TTimeSpan; inline;

C++

System::Timespan::TTimeSpan __fastcall GetUtcOffset(const System::TDateTime ADateTime, const bool ForceDaylight = false);

Properties

Type Visibility Source Unit Parent
function public
System.DateUtils.pas
System.DateUtils.hpp
System.DateUtils TTimeZone

Description

Computes the UTC offset for the given local time.

Call GetUtcOffset to obtain the UTC offset for the given local time.

The UTC offset represents the amount of time that should be subtracted from the given local time to obtain the universal time.

The ForceDaylight parameter specifies how ambiguous time is treated.

See Also