Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12244

Convert string with time data to rtc_time structure in Linux kernel

$
0
0

I can easily convert kernel data type struct rtc_time to string with help sprintf(), but I can't do reverse operation:

 string "Thu Aug 23 14:55:02 2001" to rtc_time structure

Should I write my own realisation if strptime() function into my kernel module?

Could anyone prompt me?


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>