Port of Arduino Timezone library to Particle

Has the Arduino Timezone library been ported into the Particle environment? I don’t see it listed in the Community libraries section. I have a Photon 2 based project that needs the correct time, adjusted for DST and timezone, and this library seems like the easiest way to accomplish this. Are there any suggested alternatives?

I use LocalTimeRK for handing timezone and daylight saving on Particle devices.

It’s also generally easy to port an Arduino library, especially if you are using Particle Workbench. See Using a 3rd-party library not in community libraries.

@rickkas7: Thanks. This appears to be a better library for my needs than the Arduino Timezone, as it supports POSIX timezone specs as well as scheduling. Should be a real timesaver.

@rickkas7 : I wanted to thank you for developing this library and for steering me to it. The library is exceptionally powerful and it provided me with most of the code that I needed for my project! The library is complex and it took a while to figure out how to use all of its features, but in the end it saved a huge amount of development and even more time in debugging (dealing with time – timezones and dst is worse then a trip to the dentist!).

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.