Hi!
CS 2.5.5 here.
In the jivecs.jiveuser table we have the LASTLOGGEDIN value in, as I found on this forum, a modified verison of UNIX epoch date.
I can't seem to reliably reverse engineer this string.
What's the pattern to rip this back to epoch date, so Excel can properly format it?
Why? We want to do some reporting -- I know using code would be more approrpiate but due to various limitations, we can't do that. But I do have a read only view in the database.
Thanks,
Will
Hey William,
Looks to me to just be a regular 'time since epoch' in milliseconds. Running the linux command 'date +%s.%N' and then multiplying by 1000 should give you the current time in milliseconds. What do you mean by 'ripping it back to epoch date, so excel can properly format it'?
Thanks,
Kevin
The question was specifcally how to get it into Epoch Seconds for use in Excel.
Since I said Excel, assume I'm a business weenie and don't know Linux from a hole in my head.
But, I found it - y'alls search is getting spooky good.
http://www.jivesoftware.com/jivespace/message/211037#211037
Jive lastloggedin value is stored in miliseconds since the epoch - not seconds as Excel expects.
(lastloggedin / 1000) == epoch and can be manipulated by Excel.
Hey William,
One thing you might also want to look into is a document we have:
Creating Human Readable Dates from SBS database timestamps in Excel
I hope that helps
Thanks,
Kevin
That's perfect! Thanks, Kevin - this document http://www.jivesoftware.com/jivespace/docs/DOC-5978 is precisely what I needed.
Jive combines collaboration software, community software & social networking software into the leading SBS solution.
© Copyright 2000–2009 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205