Go Down

Topic: Library for time zone conversions and automatic DST adjustments (Read 12 times) previous topic - next topic

Jack Christensen


thanks... works very well...


You're very welcome, thanks for the feedback.  Unfortunately, it's that time of year  :(
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

MrGlasspoole

Hi,

this library works only with RTC's?
Is there something like "Auto Daylight Savings Time" for ntp?

Jack Christensen

#17
Oct 31, 2013, 04:09 pm Last Edit: Oct 31, 2013, 04:10 pm by Jack Christensen Reason: 1

Hi,
this library works only with RTC's?


Hello!  The Timezone library is unaware of RTCs; it will work with or without one.  It simply converts time values stored in time_t variables.  Include the Arduino Time library to define the time_t data type.

Quote

Is there something like "Auto Daylight Savings Time" for ntp?


NTP sends UTC only, without adjustments for daylight time or time zone.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

MrGlasspoole


NTP sends UTC only, without adjustments for daylight time or time zone.
Thats the reason i was asking. So i can do it like my router with your library.
There i can set the Time Zone and NTP Time Server and have a Auto Daylight Savings Time checkbox.

Now i see "the Time library will function as a software RTC without additional hardware" in the readme.
So the first sentence "A primary aim of this library is to allow a Real Time Clock (RTC)" did confuse me.

Jack Christensen


So the first sentence "A primary aim of this library is to allow a Real Time Clock (RTC)" did confuse me.


Hmmm, yes, thanks for pointing that out.  I'll give some thought to clarifying that.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Go Up