[maemo-users] Dmesg timestamt format

From: Paul Hartman paul.hartman+maemo at gmail.com
Date: Thu May 27 22:57:16 EEST 2010
2010/5/27 Alejandro López <listas.apl at googlemail.com>:
> Hi,
> Which format is dmesg's timestamp printed in? I currently have values like 68993.598785 and I can't really figure out how to
> transform it into a date/time.

In Linux systems in general, it is typically the number of seconds
since the device was powered on. It is really not useful for finding
out when something happened; it's basically there to find out how much
time passed between messages. If you want real timestamps, install

You may be able to look at /proc/uptime, subtract that many seconds
from current time and approximate the dmesg times based on that.

That is, of course, assuming it started at 0. In the case of N900 I
don't think it necessarily always does. Maybe it depends on the
presence of a charging cable, etc.
More information about the maemo-users mailing list