At 09:24 PM 6/3/04 -0500, Chris wrote:
Is there a formula to convert atime to an understandable figure, or is that
possible?  Couldn't find anything ref this in the archives.

I'm not positive, but I'm fairly sure that the "atime" values used by SA in reference to the bayes DB are in seconds-since epoch format. The numbers I've seen seem consistent with that format, and the values make sense, so I'm fairly sure, but I've not checked the code.


I don't know of any conversion utilities, but there's lots of programmer's API's that convert it to more normal formats (ie: C's localtime() function).

To explain the foramt, the seconds-since epoch format is common in storing computer timestamps and is the number of seconds since the start of January 1, 1970.

Doing some multiplication of 34 years * 365 days/year * 24 hrs/day * 60 mins/hr * 60 sec/min yields 1072224000 seconds

1072224000 would be the atime of the start of 2004 (midnight on January 1st, 2004).
1103760000 would be 2005.


I know this won't be a whole lot of help in converting absolute atimes, but at least you've got some guide-posts and some understanding of what you're looking at.

Also, understanding how atime is represented can help you understand the delta's reported by SA. Those are in plain seconds, and you can just divide down to represent it in hours, days, or whatever base value you prefer.

You could also take an absolute atime and subtract off the atime of the start of 2004 and divide the resulting delta down. That's a lot of work, but if you really need to know, it is doable.




Reply via email to