[fpc-pascal] Converting from seconds to TTime: easiest way?
Reinier Olislagers
reinierolislagers at gmail.com
Wed Jun 20 11:40:45 CEST 2012
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
More information about the fpc-pascal
mailing list