System.DateUtils.TTimeZone.IsDaylightTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsDaylightTime(const ADateTime: TDateTime; const ForceDaylight: Boolean = False): Boolean;

C++

bool __fastcall IsDaylightTime(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

Checks whether the given local date and time is situated in the DST (Daylight Savings Time) period.

The IsDaylightTime method checks whether the given local date and time is situated in the DST period.

ForceDaylight specifes how ambiguous time is treated.

See Also