hi, i am using a samd21 device and i have to convert utc time to local time, please help me out!
It depends on where you are, and whether the region where you are uses summer/winter time. Calculating the offset would be tricky, especially as there are now and then changes. One can look up the offset on https://www.timeanddate.com
Where I am the local time is UTC+2 hours, on the last Sunday of October iit will be UTC+1 hour
© 2020 Microchip Technology Inc.