System.Win.Registry.TRegistry.ReadDateTime
Delphi
function ReadDateTime(const Name: string): TDateTime;
C++
System::TDateTime __fastcall ReadDateTime(const System::UnicodeString Name);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Win.Registry.pas System.Win.Registry.hpp |
System.Win.Registry | TRegistry |
Description
Retrieves a date and time value from a specified data value associated with the current key.
Call ReadDateTime to read a datetime value from a specified data value associated with the current key. Name is the name of the data value to read.
If successful, ReadDateTime returns a TDateTime value. The integral part of a TDateTime value is the number of days that have passed since 12/30/1899. The fractional part of a TDateTime value is the time of day.
If the Registry entry does not contain a date or time value, an exception is raised.