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 - [email protected] [1] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal [2] Links: ------ [1] mailto:[email protected] [2] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
_______________________________________________ fpc-pascal maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
