TryStrToTime function
Try to convert a string with a time indication to a TDateTime value.
Declaration
function TryStrToTime(const S: ShortString; out Value: TDateTime)
: BooleanDescription
TryStrToTime tries to convert the string
S to a
TDateTime time
value, and stores the result in
Value. The time must consist of 1 to 4 digits,
separated by the
TimeSeparator character. If two numbers are given, they
are supposed to form the hour and minutes.
The function returns True if the string contained a valid time indication,
False otherwise.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
