Here's a solution for the /var/log/ConsoleKit/history log which works rather well.
First copy the file to your home directory and add a ".csv" suffix to the file name.
Next open LibreOffice Calc and use the Insert->Sheet from file... menu option to load your "csv" log.
The import wizard will split the log entries up into columns, and you can play with that if you like, but I didn't.
The important timestamp field will be column A.
To convert to a LibreOffice date value use this formula in column B
- Code: Select all
=25569+(A1/86400)
Now all you have to do is format the cell in B1 with this custom format string;
- Code: Select all
use Format->Cells and click on the Numbers tab
select Category->User Defined
Type in format code; YYYY-MMM-DD HH:MM:SS.000
Now you can copy the B1 cell to all of the cells in column B in the range covered by the log.
I'm happy now.