Sign in Join
FPDoc Onlineexperiment

StrToTimeDef function

In unit sysutils

Convert string to time, returning a default value.

Declaration

pascal
function StrToTimeDef(const S: ShortString; const Defvalue: TDateTime)
: TDateTime

Description

StrToTimeDef tries to convert the string S to a valid TDateTime time value, and returns DefValue if S does not contain a valid time indication.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.