Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to convert 20 1 1 year 1 day 1 day 12: 25 seconds into integers in delphi?
How to convert 20 1 1 year 1 day 1 day 12: 25 seconds into integers in delphi?
There is something wrong with the one upstairs.

defined variable

old time:TDateTime;

now time:TDateTime;

temp:real;

Ii: integer;

originally

old time:= Now;

Speaking of computing

NowTime := Now;

temp:=(now time-old time)* 24 * 60 * 60;

ii:= round(temp);