Skip to content

TCustomIniFile.ReadTime

Read a time value.

Declaration

Source position: inifiles.pp line 198

public 
function TCustomIniFile.ReadTime(const Section: string; 
                                const Ident: string; Default: TDateTime)
                                 : TDateTime;  virtual;

Description

ReadTime reads the key Ident in section Section, and returns the value as a time (TDateTime). If the specified key or section do not exist, then the value in Default is returned. If the key exists, but contains an invalid time value, Default is also returned. The international settings of the SysUtils are taken into account when deciding if the read value is a correct time.

See also

Name Description
WriteTime Write time value.
ReadInteger Read an integer value from the file.
ReadBool
ReadDate Read a date value.
ReadDateTime Read a Date/Time value.
ReadString Read a string valued key.
ReadFloat Read a floating point value.
ReadBinaryStream Read binary data.