Dmesg timestamt format
Dmesg timestamt format
Re: Dmesg timestamt format
2010-05-27 19:55 UTC
Hi,
these are seconds since system start.
Regards,
Martin
2010/5/27, Alejandro López <listas.apl@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.
>
> Thanks.
> Alejandro.
>
these are seconds since system start.
Regards,
Martin
2010/5/27, Alejandro López <listas.apl@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.
>
> Thanks.
> Alejandro.
>
Re: Dmesg timestamt format

Paul Hartman
2010/5/27 Alejandro López <listas.apl@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
syslog.
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.
> 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
syslog.
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.
Re: Dmesg timestamt format
2010-05-27 20:00 UTC
2010/5/27 Alejandro López <listas.apl@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.
>
> It's printk() times, more info here: http://elinux.org/Printk_Times
Best regards,
--
Cláudio "Patola" Sampaio
IRC: ptl - Yahoo: patolaaa
Campinas, SP - Brazil.
> 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.
>
> It's printk() times, more info here: http://elinux.org/Printk_Times
Best regards,
--
Cláudio "Patola" Sampaio
IRC: ptl - Yahoo: patolaaa
Campinas, SP - Brazil.
Re: Dmesg timestamt format
2010-05-28 14:26 UTC
Thanks for all three answers. Now I know how to use that value.
Cláudio Sampaio wrote:
> 2010/5/27 Alejandro López <listas.apl@googlemail.com
> <mailto:listas.apl@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.
>
> It's printk() times, more info here: http://elinux.org/Printk_Times
>
> Best regards,
> --
> Cláudio "Patola" Sampaio
> IRC: ptl - Yahoo: patolaaa
> Campinas, SP - Brazil.
Cláudio Sampaio wrote:
> 2010/5/27 Alejandro López <listas.apl@googlemail.com
> <mailto:listas.apl@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.
>
> It's printk() times, more info here: http://elinux.org/Printk_Times
>
> Best regards,
> --
> Cláudio "Patola" Sampaio
> IRC: ptl - Yahoo: patolaaa
> Campinas, SP - Brazil.
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.
Thanks.
Alejandro.