Try 

MyTTime := HugeNumberOfSecondsInteger / (3600 * 24); 

On 20
jun '12, Reinier Olislagers wrote: 

> 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 -
fpc-pascal@lists.freepascal.org [1]
>
http://lists.freepascal.org/mailman/listinfo/fpc-pascal [2]

 


Links:
------
[1] mailto:fpc-pascal@lists.freepascal.org
[2]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to