python - Convert Chrome history date/time stamp to readable format -
I have originally posted this question in search of an answer with using Python, get some good help Has gone, but has not yet found a trick. I have a script running OS X 10.5 client machines that captures internet browsing history (required in my USS public school as part of the administrative duties of my system). Firefox 3.x stores history in a sqlite DB, and I have figured out how information on using Python / sqlite3 uses a traditional unicastemstamp to mark Firefox 3.x visits and It is not difficult to convert ... Chrome also stores browser history in Eclipse DB, but its timestamp has been used for microseconds since January, 1601. Formatted as number. I like to use Python to figure it out, but as far as I know, the SQLite3 module does not support that UTC format. Is there another tool for converting Chrome timestamps into human readable formats?
Use the module, for example, if the number of microsconds in questions is 10 ** 16: / P>
gt; & Gt; & Gt; Datetime.datetime (1601, 1, 1) + datetime.timedelta (microseconds = 1e16) datetime.datetime (1917, 11, 21, 17, 46, 40) & gt; & Gt; & Gt; It tells you that it was before a quarter of 6 o'clock on November 21, 1917. You can format . Any time you want to apply their strftime
method, if you need to implement timezone (other than UTC except what you have started) at the time of day
objects See third-party modules.
Comments
Post a Comment