<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Try</p>
<p> </p>
<p>MyTTime := HugeNumberOfSecondsInteger / (3600 * 24);</p>
<p> </p>
<p> </p>
<p> </p>
<p>On 20 jun '12, Reinier Olislagers wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre>Morning list,

I'm trying to convert a large number of seconds to a TTime.

To my surprise - without a Delphi background ;) - EncodeTime only takes
up to 59 seconds... ;)
Same for EncodeTimeInterval

So I ended up with something like:

IncSecond(EncodeTime(0,0,0,0), HugeNumberOfSecondsInteger);

is this the best way to do this or is there some smarter way I've missed?

Thanks,
Reinier
_______________________________________________
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a>
</pre>
</blockquote>
<p> </p>
<p> </p>
<div> </div>
</body></html>