Go Down

Topic: Converting time string to UTC time (Read 314 times) previous topic - next topic

colleseus

Hi,

I am working on Arduino Mega 2560 + SIM900 GSM module. I found out that GSM module can receive updated time from the connected base station. The time is displayed in string in the following format:
"yyyy-mm-dd hh:mm:ss".

I want to convert this string to UTC time format. Which are the libraries available to achieve this?

Thanks,
Lovelesh

SurferTim

#1
Jun 17, 2016, 02:58 pm Last Edit: Jun 17, 2016, 03:02 pm by SurferTim
Are you saying that is local time, and you want UTC? Does your local time have Daylight Saving Time?

edit: Consensus has it this is the best time library for you.
https://github.com/JChristensen/Timezone

Go Up