[fpc-pascal] Converting from seconds to TTime: easiest way?
dhkblaszyk at zeelandnet.nl
dhkblaszyk at zeelandnet.nl
Wed Jun 20 11:53:33 CEST 2012
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 at lists.freepascal.org [1]
>
http://lists.freepascal.org/mailman/listinfo/fpc-pascal [2]
Links:
------
[1] mailto:fpc-pascal at lists.freepascal.org
[2]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120620/eed324f6/attachment.html>
More information about the fpc-pascal
mailing list