Am 20.06.2012 12:16, schrieb Reinier Olislagers:
On 20-6-2012 11:53, dhkblas...@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... ;)
You could rely on constants provided by the "dateutils" unit (I'm rather
sure that we'd provide approbiate replacements if we'd change the
TDateTime type somewhen ;) ):
MyTTime := HugeNumberOfSecondsInteger * OneSecond;
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal