mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 15:19:35 +02:00
codetools: fixed decodetime
git-svn-id: trunk@47639 -
This commit is contained in:
parent
1ace74c1d3
commit
702fefa1c2
@ -1029,8 +1029,8 @@ begin
|
||||
exit;
|
||||
end;
|
||||
DT := FileDateToDateTimeDef(t);
|
||||
DecodeTime(DT,hour,min,sec,hsec);
|
||||
DecodeDate(DT,year,month,day);
|
||||
DecodeTime(Frac(DT),hour,min,sec,hsec);
|
||||
DecodeDate(Trunc(DT),year,month,day);
|
||||
Result := L0(Year)+'/'+L0(Month)+'/'+L0(Day)+' '+L0(Hour)+':'+L0(min)+':'+L0(sec);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user