System.DateUtils.TTimeZone.ToUniversalTime
Delphi
function ToUniversalTime(const ADateTime: TDateTime; const ForceDaylight: Boolean = False): TDateTime; inline;
C++
System::TDateTime __fastcall ToUniversalTime(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
Converts a given local time to universal time.
Call the ToUniversalTime method to convert a local time value to universal time.
ForceDaylight specifies how ambiguous time is treated.