Skip to content

Commit

Permalink
GNU GPL v3.0.
Browse files Browse the repository at this point in the history
Closes #31.
  • Loading branch information
JChristensen committed Mar 21, 2018
1 parent 40b41d3 commit 3713faf
Show file tree
Hide file tree
Showing 11 changed files with 731 additions and 62 deletions.
680 changes: 673 additions & 7 deletions LICENSE.md

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
# Arduino Timezone Library
https://github.com/JChristensen/Timezone
README file
Jack Christensen Mar 2012
Jack Christensen
Mar 2012

![CC BY-SA](http://mirrors.creativecommons.org/presskit/buttons/80x15/png/by-sa.png)
## License
Arduino Timezone Library Copyright (C) 2018 Jack Christensen GNU GPL v3.0

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License v3.0 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/gpl.html>

## Introduction
The **Timezone** library is designed to work in conjunction with the [Arduino Time library](https://github.com/PaulStoffregen/Time), which must also be installed on your system. This documentation assumes some familiarity with the Time library.
Expand Down
5 changes: 4 additions & 1 deletion examples/Change_TZ_1/Change_TZ_1.ino
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Timezone library example sketch.
// Arduino Timezone Library Copyright (C) 2018 by Jack Christensen and
// licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
//
// Arduino Timezone Library example sketch.
// Demonstrates changing timezone "on the fly".
// Uses a pushbutton switch to change between the four continental US time zones.
// The current timezone setting is saved in EEPROM so it is remembered if
Expand Down
5 changes: 4 additions & 1 deletion examples/Change_TZ_2/Change_TZ_2.ino
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Timezone library example sketch.
// Arduino Timezone Library Copyright (C) 2018 by Jack Christensen and
// licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
//
// Arduino Timezone Library example sketch.
// Demonstrates changing time zones using an array of Timezone objects.
// Uses a pushbutton switch to change between the four US continental time zones.
// Tested with Arduino 1.8.5 and an Arduino Uno.
Expand Down
17 changes: 7 additions & 10 deletions examples/Clock/Clock.ino
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
/*----------------------------------------------------------------------*
* Timezone library example sketch. *
* Self-adjusting clock for one time zone. *
* TimeChangeRules can be hard-coded or read from EEPROM, see comments. *
* Jack Christensen Mar 2012 *
* *
* CC BY-SA 4.0: This work is licensed under the Creative Commons *
* Attribution-ShareAlike 4.0 International License, *
* https://creativecommons.org/licenses/by-sa/4.0/ *
*----------------------------------------------------------------------*/
// Arduino Timezone Library Copyright (C) 2018 by Jack Christensen and
// licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
//
// Arduino Timezone Library example sketch.
// Self-adjusting clock for one time zone.
// TimeChangeRules can be hard-coded or read from EEPROM, see comments.
// Jack Christensen Mar 2012

#include <Timezone.h> //https://github.com/JChristensen/Timezone

Expand Down
25 changes: 11 additions & 14 deletions examples/HardwareRTC/HardwareRTC.ino
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
/*----------------------------------------------------------------------*
* Timezone library example sketch. *
* Self-adjusting clock for one time zone using an external real-time *
* clock, either a DS1307 or DS3231 (e.g. Chronodot). *
* Assumes the RTC is set to UTC. *
* TimeChangeRules can be hard-coded or read from EEPROM, see comments. *
* Check out the Chronodot at http://www.macetech.com/store/ *
* *
* Jack Christensen Aug 2012 *
* *
* CC BY-SA 4.0: This work is licensed under the Creative Commons *
* Attribution-ShareAlike 4.0 International License, *
* https://creativecommons.org/licenses/by-sa/4.0/ *
*----------------------------------------------------------------------*/
// Arduino Timezone Library Copyright (C) 2018 by Jack Christensen and
// licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
//
// Arduino Timezone Library example sketch.
// Self-adjusting clock for one time zone using an external real-time
// clock, either a DS1307 or DS3231 (e.g. Chronodot).
// Assumes the RTC is set to UTC.
// TimeChangeRules can be hard-coded or read from EEPROM, see comments.
// Check out the Chronodot at http://www.macetech.com/store/
//
// Jack Christensen Aug 2012

#include <DS1307RTC.h> // https://github.com/PaulStoffregen/DS1307RTC
#include <Timezone.h> // https://github.com/JChristensen/Timezone
Expand Down
23 changes: 10 additions & 13 deletions examples/WorldClock/WorldClock.ino
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
/*----------------------------------------------------------------------*
* Timezone library example sketch. *
* Self-adjusting clock for multiple time zones. *
* Jack Christensen Mar 2012 *
* *
* Sources for DST rule information: *
* http://www.timeanddate.com/worldclock/ *
* http://home.tiscali.nl/~t876506/TZworld.html *
* *
* CC BY-SA 4.0: This work is licensed under the Creative Commons *
* Attribution-ShareAlike 4.0 International License, *
* https://creativecommons.org/licenses/by-sa/4.0/ *
*----------------------------------------------------------------------*/
// Arduino Timezone Library Copyright (C) 2018 by Jack Christensen and
// licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
//
// Arduino Timezone Library example sketch.
// Self-adjusting clock for multiple time zones.
// Jack Christensen Mar 2012
//
// Sources for DST rule information:
// http://www.timeanddate.com/worldclock/
// http://home.tiscali.nl/~t876506/TZworld.html

#include <Timezone.h> // https://github.com/JChristensen/Timezone

Expand Down
15 changes: 6 additions & 9 deletions examples/WriteRules/WriteRules.ino
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/*----------------------------------------------------------------------*
* Timezone library example sketch. *
* Write TimeChangeRules to EEPROM. *
* Jack Christensen Mar 2012 *
* *
* CC BY-SA 4.0: This work is licensed under the Creative Commons *
* Attribution-ShareAlike 4.0 International License, *
* https://creativecommons.org/licenses/by-sa/4.0/ *
*----------------------------------------------------------------------*/
// Arduino Timezone Library Copyright (C) 2018 by Jack Christensen and
// licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html
//
// Arduino Timezone Library example sketch.
// Write TimeChangeRules to EEPROM.
// Jack Christensen Mar 2012

#include <Timezone.h> // https://github.com/JChristensen/Timezone

Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Timezone
version=1.1.1
version=1.1.2
author=Jack Christensen <[email protected]>
maintainer=Jack Christensen <[email protected]>
sentence=Arduino library to facilitate time zone conversions and automatic daylight saving (summer) time adjustments.
Expand Down
4 changes: 2 additions & 2 deletions src/Timezone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Arduino Timezone Library *
* Jack Christensen Mar 2012 *
* *
* "Arduino Timezone Library" by Jack Christensen is licensed under *
* CC BY-SA 4.0, http://creativecommons.org/licenses/by-sa/4.0/ *
* Arduino Timezone Library Copyright (C) 2018 by Jack Christensen and *
* licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html *
*----------------------------------------------------------------------*/

#include "Timezone.h"
Expand Down
4 changes: 2 additions & 2 deletions src/Timezone.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* Arduino Timezone Library *
* Jack Christensen Mar 2012 *
* *
* "Arduino Timezone Library" by Jack Christensen is licensed under *
* CC BY-SA 4.0, http://creativecommons.org/licenses/by-sa/4.0/ *
* Arduino Timezone Library Copyright (C) 2018 by Jack Christensen and *
* licensed under GNU GPL v3.0, https://www.gnu.org/licenses/gpl.html *
*----------------------------------------------------------------------*/

#ifndef TIMEZONE_H_INCLUDED
Expand Down

0 comments on commit 3713faf

Please sign in to comment.