mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 04:49:20 +02:00
* add overloaded strtotime, patch by Lacak2, Mantis #19870
git-svn-id: trunk@18093 -
This commit is contained in:
parent
728c5a4832
commit
52afb619aa
@ -708,6 +708,20 @@ begin
|
|||||||
Raise EConvertError.Create(Msg);
|
Raise EConvertError.Create(Msg);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function StrToTime(const S: PChar; Len : integer; FormatSettings : TFormatSettings; separator : char = #0): TDateTime;
|
||||||
|
Var
|
||||||
|
Msg : AnsiString;
|
||||||
|
begin
|
||||||
|
Result:=IntStrToTime(Msg,S,Len,FormatSettings,Separator);
|
||||||
|
If (Msg<>'') then
|
||||||
|
Raise EConvertError.Create(Msg);
|
||||||
|
end;
|
||||||
|
|
||||||
|
function StrToTime(const S: string; FormatSettings : TFormatSettings): TDateTime;
|
||||||
|
begin
|
||||||
|
Result := StrToTime(@S[1], length(S), FormatSettings, #0);
|
||||||
|
end;
|
||||||
|
|
||||||
function StrToTime(const s: ShortString; separator : char): TDateTime;
|
function StrToTime(const s: ShortString; separator : char): TDateTime;
|
||||||
begin
|
begin
|
||||||
result := StrToTime(@s[1], length(s), separator);
|
result := StrToTime(@s[1], length(s), separator);
|
||||||
|
@ -135,6 +135,8 @@ function StrToTime(const S: Shortstring): TDateTime; {$ifdef SY
|
|||||||
function StrToTime(const S: Ansistring): TDateTime; {$ifdef SYSUTILSINLINE}inline;{$endif}
|
function StrToTime(const S: Ansistring): TDateTime; {$ifdef SYSUTILSINLINE}inline;{$endif}
|
||||||
function StrToTime(const S: ShortString; separator : char): TDateTime;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
function StrToTime(const S: ShortString; separator : char): TDateTime;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
||||||
function StrToTime(const S: AnsiString; separator : char): TDateTime; {$ifdef SYSUTILSINLINE}inline;{$endif}
|
function StrToTime(const S: AnsiString; separator : char): TDateTime; {$ifdef SYSUTILSINLINE}inline;{$endif}
|
||||||
|
function StrToTime(const S: PChar; Len : integer; FormatSettings : TFormatSettings; separator : char = #0): TDateTime;
|
||||||
|
function StrToTime(const S: string; FormatSettings : TFormatSettings): TDateTime;
|
||||||
function StrToDate(const S: ShortString; const useformat : string; separator : char): TDateTime;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
function StrToDate(const S: ShortString; const useformat : string; separator : char): TDateTime;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
||||||
function StrToDate(const S: AnsiString; const useformat : string; separator : char): TDateTime;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
function StrToDate(const S: AnsiString; const useformat : string; separator : char): TDateTime;{$ifdef SYSUTILSINLINE}inline;{$endif}
|
||||||
function StrToTime(const S: PChar; Len : integer; separator : char = #0): TDateTime;
|
function StrToTime(const S: PChar; Len : integer; separator : char = #0): TDateTime;
|
||||||
|
Loading…
Reference in New Issue
Block a user