[fpc-pascal] Converting from seconds to TTime: easiest way?

Reinier Olislagers reinierolislagers at gmail.com
Wed Jun 20 12:16:45 CEST 2012


On 20-6-2012 11:53, dhkblaszyk at zeelandnet.nl wrote:
> Try
> 
>  
> 
> MyTTime := HugeNumberOfSecondsInteger / (3600 * 24);
> 
Bedankt, Darius.

That's indeed shorter and fairly clear... but the advantage of the other
way is that I don't need to remember what units TTime uses internally...  ;)

Regards,
Reinier



More information about the fpc-pascal mailing list