TJSONIniFile.ReadDateTime function
Reads a date-time value from the JSON ini file
Declaration
function ReadDateTime(const Section: string; const Ident: string;
Default: TDateTime): TDateTime; overrideArguments
Section | The section name to read from |
Ident | The key name to read |
Default | Default value to return if key not found or conversion failed |
Function result
The date-time value or default if key not found or conversion failed
Description
ReadDateTime reads a date-time value from the specified section and key.
If the stored value is a JSON number, it is interpreted as a
TDateTime value.
If the stored value is a string, it is parsed using ISO date-time format (yyyy-mm-ddThh:nn:ss.zzz).
If the key is not found or conversion fails, the
Default value is returned.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
