cancel
Showing results for 
Search instead for 
Did you mean: 

How to parse the Time format in log description file?

Occasional Contributor

How to parse the Time format in log description file?

Hi All,

I have a script(Jscript) which parses through "Description.tcLog" and gets the node values like user name, error count and warning count.



But the start and end time is in different format and i can't parse it.



Can you help in converting this time format to which user can understand.
2 REPLIES 2
Highlighted
Contributor

RE: How to parse the Time format in log description file?

Try this:



var converted = aqConvert.CurrencyToStr(start time)

var temp = aqConvert.StrToFloat(converted );

Log.Message(aqConvert.DateTimeToStr(temp));
Highlighted
Occasional Contributor

RE: How to parse the Time format in log description file?

Thanks Enrique !



I am able to parse it.


New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors