Link to home
Start Free TrialLog in
Avatar of Cerixus
CerixusFlag for United States of America

asked on

Convert UINT64 to usable string in ASP (Win32_PerfRawData_PerfOS_System - SystemUpTime)

I was using Win32_PerfFormattedData_PerfOS_System - SystemUpTime to determing how long a server had been online, unfortunately that doesn't exist in Server 2000.  So, I decided to use Win32_PerfRawData_PerfOS_System.  However, the number is like 128697836904361421 and I have no idea how to convert that to anything useful.  I did discover it's uINT64, but that doesn't help me any...

How do I make this useful? What kind of math do I need to convert it to seconds?
ASKER CERTIFIED SOLUTION
Avatar of rejoinder
rejoinder
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Cerixus

ASKER

Other than the fact that the month/day were switched on the 2003 servers, this worked perfectly!  :)