This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220SF-LAUNCHXL: How to use RTC in CC3220

Part Number: CC3220SF-LAUNCHXL

Hi, 

I am using "simplelink_cc32xx_sdk_2_30_00_05", with CC3220MODASF launchpad. I have time in "year/month/date/hour/min/sec" how to set this to rtc, I tried

clock_settime(CLOCK_REALTIME, ts);

this api needs time in seconds/epoch time, but I have in  year/month/date/hour/min/sec. How to convert this ?

The "clock_gettime()" will return in second's how to convert the same to "year/month/date/hour/min/sec"?

Can I get the epoch time any where by Http get call on internet?

My need is to get the live time when ever my device starts and/or set the time I have to RTC. Read the RTC time whenever I need in year/month/date/hour/min/sec format.

Thank you