Hi,
I am using CC3235S module. In my application, I want to get UTC time as well as time of given time zone. Currently I am getting UTC time using below code:
_i8 configOpt = SL_DEVICE_GENERAL_DATE_TIME;
SlDateTime_t dt;
sl_DeviceGet(SL_DEVICE_GENERAL, &configOpt,
sizeof(SlDateTime_t), (unsigned char *)(&dt));
How to get time of a given time zone? I referred local_time example in SDK and I could find API's like ClockSync_setTimeZone() and ClockSync_get(&netTime).
If I set time zone using ClockSync_setTimeZone() then will ClockSync_get(&netTime) returns time of the set time zone? If yes, will I still be able to get UTC time using my existing code given above?
If there is any other solution to get both UTC time as well as time as time zone then please suggest.
Thanks,
Pradeep