UTC to Local time convertion in Atmel studio

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hi, i am using a samd21 device and i have to convert utc time to local time, please help me out!

Mahesh

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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

Jerry