mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 06:18:21 +02:00
examples: fixed combining date+time
git-svn-id: trunk@47631 -
This commit is contained in:
parent
2d94fffb1c
commit
668cd2f578
@ -225,7 +225,7 @@ begin
|
||||
DT:=Now;
|
||||
H:=NextOKDay(DT);
|
||||
If (H<>0) then
|
||||
Result:=Date+H+EncodeTime(0,FCleaner.HourlyAt,0,0)
|
||||
Result:=ComposeDateTime(Date+H,EncodeTime(0,FCleaner.HourlyAt,0,0))
|
||||
else
|
||||
begin // Still today
|
||||
DecodeTime(DT,H,M,S,MS);
|
||||
@ -240,7 +240,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
DT:=EncodeTime(H,FCleaner.HourlyAt,0,0);
|
||||
Result:=Result+DT;
|
||||
Result:=ComposeDateTime(Result,DT);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user