System.DateUtils.TTimeZone.IsInvalidTime
Delphi
function IsInvalidTime(const ADateTime: TDateTime): Boolean; inline;
C++
bool __fastcall IsInvalidTime(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 invalid.
The IsInvalidTime method checks whether the given local date and time are invalid (situated within the limbo hours). For example: on the West Coast of the U.S., daylight saving time begins on the second Sunday in March, when after 1:59.9999 A.M. comes 3:00 A.M.. March 13, 2022, 2:30 A.M. is an invalid date and time value because it does not exist in either Daylight Saving Time or Standard Time.