Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

StrToTimeDef

Convert string to time, returning a default value

Declaration

Source position: datih.inc line 187

function StrToTimeDef(

  const S: ShortString;

  const Defvalue: Double

):Double;

function StrToTimeDef(

  const S: ShortString;

  const Defvalue: Double;

  separator: Char

):Double;

function StrToTimeDef(

  const S: AnsiString;

  const Defvalue: Double

):Double;

function StrToTimeDef(

  const S: AnsiString;

  const Defvalue: Double;

  separator: Char

):Double;

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

StrToTime

  

Convert a time string to a TDateTime value.

TryStrToTime

  

Try to convert a string with a time indication to a TDateTime value

StrToDateDef

  

Convert string to date, returning a default value


Documentation generated on: Sep 29 2022