Skip to content

Library to work with Real Time Clock DS3231 modules that adjusts to summer time (DST).

Notifications You must be signed in to change notification settings

simmlemming/arduino_lib_RTC_DS3231_DST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

arduino_lib_RTC_DS3231_DST

Addition to RTClib by JeeLabs http://news.jeelabs.org/code/ that takes care of Daylight Savings Time (DST) for Europe. https://en.wikipedia.org/wiki/Summer_Time_in_Europe

TL;DR Winter time is considered to be the baseline, and during DST period clock shows time that's 1 hour ahead of baseline.

Designed to be a drop-in replacement for RTClib (when working with RS3231 sensors):

Code with RTClib

#include <RTClib.h>
RTC_DS3231 rtc;

Just replace these lines with

#include <RTC_DS3231_DST.h>
RTC_DS3231_DST rtc;

and the rest of the may remain untouched.

About

Library to work with Real Time Clock DS3231 modules that adjusts to summer time (DST).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages