• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 151
  • Last Modified:

substracting seconds from current time

Hi

I need a function that substracts given value in seconds from current time and put out a result in TDateTime

sthing like this:

function SubsTime(Seconds : int64) : TDateTime;
begin
Result := CurrentTime&Date - Seconds;
end;

thx in advance for any help
0
lololo50
Asked:
lololo50
1 Solution
 
mokuleCommented:
Result := Now - Seconds/SecsPerDay;
0
 
lololo50Author Commented:
works great
thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now