mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 02:59:33 +02:00
* currentyear (bug 4904)
git-svn-id: trunk@3031 -
This commit is contained in:
parent
371aa0d78e
commit
dd063d920d
@ -730,6 +730,12 @@ begin
|
|||||||
{$endif unix}
|
{$endif unix}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function CurrentYear:Word;
|
||||||
|
var yy,mm,dd : word;
|
||||||
|
begin
|
||||||
|
Decodedate(now,yy,mm,dd);
|
||||||
|
Result:=yy;
|
||||||
|
end;
|
||||||
|
|
||||||
Function FileDateToDateTime (Filedate : Longint) : TDateTime;
|
Function FileDateToDateTime (Filedate : Longint) : TDateTime;
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ function TryStrToTime(const S: string; out Value: TDateTime): Boolean;
|
|||||||
// function TryStrToTime(const S: string; out Value: TDateTime; const FormatSettings: TFormatSettings): Boolean;
|
// function TryStrToTime(const S: string; out Value: TDateTime; const FormatSettings: TFormatSettings): Boolean;
|
||||||
function TryStrToDateTime(const S: string; out Value: TDateTime): Boolean;
|
function TryStrToDateTime(const S: string; out Value: TDateTime): Boolean;
|
||||||
// function TryStrToDateTime(const S: string; out Value: TDateTime; const FormatSettings: TFormatSettings): Boolean;
|
// function TryStrToDateTime(const S: string; out Value: TDateTime; const FormatSettings: TFormatSettings): Boolean;
|
||||||
|
function CurrentYear:Word;
|
||||||
{ FPC Extra }
|
{ FPC Extra }
|
||||||
Procedure GetLocalTime(var SystemTime: TSystemTime);
|
Procedure GetLocalTime(var SystemTime: TSystemTime);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user