Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: MSP430 RTC Calendar to c types - time_t / tm

$
0
0
Driverlib's RTC implementation uses a proprietary `Calendar` structure to represent time. In my application, I need to manipulate time structures (i.e. add or calculate differences etc.), which is supported by native C's time.h library. Questions: Can I configure driverlib to produce `time_t`s instead of `Calendar`s? What is the best way to get the difference (i.e. time interval) between two Calendar objects? Convert to time_t and subtract?

Viewing all articles
Browse latest Browse all 62309

Trending Articles



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