mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 00:29:28 +02:00
examples: fixed combining date+time
git-svn-id: branches/fixes_1_4@47632 -
This commit is contained in:
parent
30cb5eed7b
commit
b4e4555e06
@ -225,7 +225,7 @@ begin
|
|||||||
DT:=Now;
|
DT:=Now;
|
||||||
H:=NextOKDay(DT);
|
H:=NextOKDay(DT);
|
||||||
If (H<>0) then
|
If (H<>0) then
|
||||||
Result:=Date+H+EncodeTime(0,FCleaner.HourlyAt,0,0)
|
Result:=ComposeDateTime(Date+H,EncodeTime(0,FCleaner.HourlyAt,0,0))
|
||||||
else
|
else
|
||||||
begin // Still today
|
begin // Still today
|
||||||
DecodeTime(DT,H,M,S,MS);
|
DecodeTime(DT,H,M,S,MS);
|
||||||
@ -240,7 +240,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
DT:=EncodeTime(H,FCleaner.HourlyAt,0,0);
|
DT:=EncodeTime(H,FCleaner.HourlyAt,0,0);
|
||||||
Result:=Result+DT;
|
Result:=ComposeDateTime(Result,DT);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user