Formatting timestamps in the kernel

Valdis.Kletnieks at Valdis.Kletnieks at
Tue Sep 17 20:07:26 EDT 2013

On Tue, 17 Sep 2013 16:18:51 -0700, Neil Baylis said:

> I think I read somewhere that timezones are considered a userspace concept,
> and as such are not supported within the kernel.


Your best bet is probably to use "seconds and fractions since boot", since
you can steal all the code you need from printk().  Next best is to use
epoch seconds and fractions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : 

More information about the Kernelnewbies mailing list