Confusing of TTimeSpan usage in Delphi 2010

Posted by stanleyxu2005 on Stack Overflow See other posts from Stack Overflow or by stanleyxu2005
Published on 2010-05-22T08:52:46Z Indexed on 2010/05/22 9:00 UTC
Read the original article Hit count: 189

Filed under:
|
|

Hi All,

I tried the new Record type TTimeSpan in Delphi 2010. But I encourage a very strange problem.

assert(TTimeSpan.FromMilliseconds(5000).Milliseconds == 5000);

This assertion does not pass. The value of 'TTimeSpan.FromMilliseconds(5000).Milliseconds' is always 0. I really cannot explain.

© Stack Overflow or respective owner

Related posts about delphi

Related posts about timespan