Using of struct tm in kernel module

Peter Skvarka <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
Hello,
I am looking for NetBSD equivalent of this Linux time conversion function:

void time_to_tm(time_t totalsecs, int offset, struct tm* result);
and need to use it in kernel module code.

When I look into include/time.h it seems that struct tm and functions 
working with it
are only for user-mode code. I dont know if exist some library for 
kernel providing some similar functions,
or  if can simple ported to be functional in kernel module.
What is the simplest way how to implement above function in kernel 
module code ?

Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.