On Mon, 1 Jun 2015, Richard Mace wrote:

Hi All,
What's the best way of detecting what Now - 5 minutes is?
Effectively, I want to do the following:

5MinsAgo: TDateTime;

5MinsAgo := Now -5 minutes?

Uses DateUtils;

Var
  N : TDateTime;

begin
  N:=Now;
  N:=IncMinutes(N,-5);
end;

Or somesuch.

Michael.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to