середу, 8 травня 2013 р.

Human friendly time format in dmesg

I have wondered is there any way to represent timings from dmesg in easy and clear, human-readable way. Now I have discovered "-T" switch :-)

     -T, --ctime
              Print human readable timestamps. The timestamp could be  inaccu‐
              rate!
              The  time  source  used for the logs is not updated after system
              SUSPEND/RESUME.
So simply issue:  dmesg -T.
And you're done!


References:
http://serverfault.com/questions/366392/how-to-convert-dmesg-time-format-to-real-time-format