System.DateUtils.TTimeZone.IsAmbiguousTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsAmbiguousTime(const ADateTime: TDateTime): Boolean; inline;

C++

bool __fastcall IsAmbiguousTime(const System::TDateTime ADateTime);

Properties

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

Description

Checks whether the given local date and time is ambiguous.

The IsAmbiguousTime method checks whether the given local date and time are ambiguous (situated within the repeating hours).

An ambiguous time value may appear when the local time is about to be changed due to the DST (Daylight Savings Time) rules. For example: on the West Coast of the U.S., daylight saving time ends on the first Sunday in November, when after 1:59.9999 A.M. comes 1:00 A.M. again. November 6,2022, at 1:30 A.M. could be both UTC 11/6/2022 8:30 A.M. or 9:30 A.M. It is an ambiguous date and time value PST/PDT.

See Also