Server Management - Systems Insight Manager
1832891 Members
2506 Online
110048 Solutions
New Discussion

Re: Understanding HP SIM SQL records

 
Mantas Smelevicius_1
Occasional Contributor

Understanding HP SIM SQL records

Hello,

I'm writing a little soft, for extracting some events from HP SIM SQL database. And I have problem, for understanding notices timestamp format.
For example in table [notices], value of timestamp is 1119427928093. It's like unix timestamp but.. 13 digits? Normaly unix time lenght is 10 digits. Ok. Let's supose that 3 last digits - it's a milliseconds. So. Question: It is possible to convert this value into human readable format only using SQL functions?

Or any other ideas?

Thanks
2 REPLIES 2
Mantas Smelevicius_1
Occasional Contributor

Re: Understanding HP SIM SQL records

Also on remark

1119427928093 in HP SIM is displaying 2005/06/22 11:12AM ...
Mantas Smelevicius_1
Occasional Contributor

Re: Understanding HP SIM SQL records

SELECT CONVERT(varchar(10),DATEADD(ss, 1119427928.093, '01-01-1970 03:00'),111)+' '+
CONVERT(varchar(5),DATEADD(ss, 1119427928.093, '01-01-1970 03:00'),108)