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

Bernd prof7bit at googlemail.com
Wed Jun 20 20:40:27 CEST 2012


2012/6/20  <dhkblaszyk at zeelandnet.nl>:
> Try
>
>
>
> MyTTime := HugeNumberOfSecondsInteger / (3600 * 24);

MyTTime := HugeNumberOfSecondsInteger / SecsPerDay;

The predefined constants from SysUtils look nicer.



More information about the fpc-pascal mailing list