macheshmeh
12 months agoContributor
Convert time to number
I want to convert time to numeric value in testcomplete
I change the format to %H%M then i used aqConvert.StrToFloat and it works.
I want to convert time to numeric value in testcomplete
I change the format to %H%M then i used aqConvert.StrToFloat and it works.
See post https://community.smartbear.com/t5/TestComplete-Questions/Getting-milliseonds-with-Time-method/m-p/257256 and the example that I've provided.
thanks rraghvani but i need the numeric format
in my test i have 00:10 and in the same test when i have to verify the exact time in the report
we have 0.17 and that comes from this formule 10 divide 60 = 0.17
i used different format str to float and ... but it doesn't work because the initial format is time not integer
I change the format to %H%M then i used aqConvert.StrToFloat and it works.