mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 23:29:13 +02:00
* Patch from Werner Pamler to fix count of digits in periods
git-svn-id: trunk@49299 -
This commit is contained in:
parent
5ef44c550a
commit
5cde6facdb
@ -1141,7 +1141,7 @@ var
|
|||||||
end ;
|
end ;
|
||||||
'H':
|
'H':
|
||||||
if isInterval then
|
if isInterval then
|
||||||
StoreInt(Hour + trunc(abs(DateTime))*24, 0)
|
StoreInt(Hour + trunc(abs(DateTime))*24, Count)
|
||||||
else
|
else
|
||||||
if Clock12 then
|
if Clock12 then
|
||||||
begin
|
begin
|
||||||
@ -1159,14 +1159,14 @@ var
|
|||||||
StoreInt(Hour, 2);
|
StoreInt(Hour, 2);
|
||||||
end;
|
end;
|
||||||
'N': if isInterval then
|
'N': if isInterval then
|
||||||
StoreInt(Minute + (Hour + trunc(abs(DateTime))*24)*60, 0)
|
StoreInt(Minute + (Hour + trunc(abs(DateTime))*24)*60, Count)
|
||||||
else
|
else
|
||||||
if Count = 1 then
|
if Count = 1 then
|
||||||
StoreInt(Minute, 0)
|
StoreInt(Minute, 0)
|
||||||
else
|
else
|
||||||
StoreInt(Minute, 2);
|
StoreInt(Minute, 2);
|
||||||
'S': if isInterval then
|
'S': if isInterval then
|
||||||
StoreInt(Second + (Minute + (Hour + trunc(abs(DateTime))*24)*60)*60, 0)
|
StoreInt(Second + (Minute + (Hour + trunc(abs(DateTime))*24)*60)*60, Count)
|
||||||
else
|
else
|
||||||
if Count = 1 then
|
if Count = 1 then
|
||||||
StoreInt(Second, 0)
|
StoreInt(Second, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user