Anton,
I need to parse summary.txt file exported to get the uptime, but since it is stored as a string, I'm find it difficult to test all different possible patterns. For instance, "2d 4h 4s" is displayed if the uptime is 2 days, 4 hours and 4 seconds. Does it display y for year? or is there any other character to represent month
Parsing summary.txt
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am
Re: Parsing summary.txt
Hi Sandeep
It can be days (d), hours (h), minutes (m) and seconds (s).
There are no months, no years. Days are the biggest scale.
Best regards,
Anton
It can be days (d), hours (h), minutes (m) and seconds (s).
There are no months, no years. Days are the biggest scale.
Best regards,
Anton