TJSONIniFile.ReadTime¶
Reads a time value from the JSON ini file
Declaration¶
Source position: jsonini.pp line 64
public
function TJSONIniFile.ReadTime(const Section: string;
const Ident: string; Default: TDateTime)
: TDateTime; override;
Description¶
ReadTime reads a time value from the specified section and key. If the stored value is a JSON number, the fractional part is extracted as the time component. If the stored value is a string, it is parsed using time format (0000-00-00Thh:nn:ss.zzz). If the key is not found or conversion fails, the Default value is returned.
See also¶
| Name | Description |
|---|---|
| WriteTime | Writes a time value to the JSON ini file |
| ReadDate | Reads a date value from the JSON ini file |
| ReadDateTime | Reads a date-time value from the JSON ini file |