On 20-6-2012 19:59, Sven Barth wrote:
Am 20.06.2012 12:16, schrieb Reinier Olislagers:
On 20-6-2012 11:53, dhkblas...@zeelandnet.nl wrote:
MyTTime := HugeNumberOfSecondsInteger / (3600 * 24);
Bedankt, Darius.
That's indeed shorter and fairly clear... but the advantage of the other
way is
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
Considering that TTime is a float where the fractional part is the
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
On 20-6-2012 11:53, dhkblas...@zeelandnet.nl wrote:
Try
MyTTime := HugeNumberOfSecondsInteger / (3600 * 24);
Bedankt, Darius.
That's indeed shorter and fairly clear... but the advantage of the other
way is that I don't need to remember what units TTime uses internally... ;)
Regards,
Am 20.06.2012 12:16, schrieb Reinier Olislagers:
On 20-6-2012 11:53, dhkblas...@zeelandnet.nl wrote:
Try
MyTTime := HugeNumberOfSecondsInteger / (3600 * 24);
Bedankt, Darius.
That's indeed shorter and fairly clear... but the advantage of the other
way is that I don't need to remember what
2012/6/20 dhkblas...@zeelandnet.nl:
Try
MyTTime := HugeNumberOfSecondsInteger / (3600 * 24);
MyTTime := HugeNumberOfSecondsInteger / SecsPerDay;
The predefined constants from SysUtils look nicer.
___
fpc-pascal maillist -