System.Win.Registry.TRegistry.ReadTime
Delphi
function ReadTime(const Name: string): TDateTime;
C++
System::TDateTime __fastcall ReadTime(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 time value from a specified data value associated with the current key.
Call ReadTime to read a time value from a specified data value associated with the current key. Name is the name of the data value to read.
If successful, ReadTime 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 specified Registry entry does not contain a date or time value, an exception is raised.
Note: Only use ReadTime to read data values previously stored with the WriteTime method.