Skip to content

Commit

Permalink
V1.0
Browse files Browse the repository at this point in the history
Tweaks to examples and ReadMe.txt.
  • Loading branch information
Jack Christensen committed Mar 16, 2012
1 parent ee52136 commit f678b36
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
5 changes: 3 additions & 2 deletions Examples/WorldClock/WorldClock.pde
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*----------------------------------------------------------------------*
* Timezone library example sketch. *
* Self-adjusting clock for multiple time zones. *
* Jack Christensen Mar 2012 *
* *
Expand All @@ -18,7 +19,7 @@

//Australia Eastern Time Zone (Sydney, Melbourne)
TimeChangeRule aEDT = {"AEDT", First, Sun, Oct, 2, 660}; //UTC + 11 hours
TimeChangeRule aEST = {"AEST", First, Sun, Apr, 2, 600}; //UTC + 10 hours
TimeChangeRule aEST = {"AEST", First, Sun, Apr, 3, 600}; //UTC + 10 hours
Timezone ausET(aEDT, aEST);

//Central European Time (Frankfurt, Paris)
Expand Down Expand Up @@ -70,7 +71,7 @@ void loop(void)
printTime(ausET.toLocal(utc, &tcr), tcr -> abbrev, "Sydney");
printTime(CE.toLocal(utc, &tcr), tcr -> abbrev, "Paris");
printTime(UK.toLocal(utc, &tcr), tcr -> abbrev, " London");
printTime(utc, "UTC", "");
printTime(utc, "UTC", " Universal Coordinated Time");
printTime(usET.toLocal(utc, &tcr), tcr -> abbrev, " New York");
printTime(usCT.toLocal(utc, &tcr), tcr -> abbrev, " Chicago");
printTime(usMT.toLocal(utc, &tcr), tcr -> abbrev, " Denver");
Expand Down
1 change: 1 addition & 0 deletions Examples/WriteRules/WriteRules.pde
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*----------------------------------------------------------------------*
* Timezone library example sketch. *
* Write TimeChangeRules to EEPROM. *
* Jack Christensen Mar 2012 *
* *
Expand Down
2 changes: 2 additions & 0 deletions Examples/clock/Clock.pde
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/*----------------------------------------------------------------------*
* 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 *
* *
* This work is licensed under the Creative Commons Attribution- *
Expand Down
9 changes: 5 additions & 4 deletions ReadMe.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ReadMe file for Arduino Timezone Library v0.8 (Alpha version)
ReadMe file for Arduino Timezone Library v1.0
https://github.com/JChristensen/Timezone
Jack Christensen Mar 2012

This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
Expand All @@ -9,7 +10,7 @@ Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
--------------------------------------------------------------------------------
This library is designed to work in conjunction with the Arduino Time library at
http://www.arduino.cc/playground/Code/Time. The Time library must be referenced
in your sketch using #include <Time.h>. This documentation assumes some
in your sketch with #include <Time.h>. This documentation assumes some
familiarity with the Time library.

A primary aim of this library is to allow a Real Time Clock (RTC) to be set to
Expand Down Expand Up @@ -58,7 +59,7 @@ time starts.

As an example, here in the Eastern US time zone, Eastern Daylight Time (EDT)
starts on the 2nd Sunday in March at 02:00 local time. Eastern Standard Time
(EST) starts on the first Sunday in November at 02:00 local time.
(EST) starts on the 1st Sunday in November at 02:00 local time.

Declare a TimeChangeRule as follows:

Expand Down Expand Up @@ -108,7 +109,7 @@ and standard time rules previously stored at EEPROM address 100:

Timezone usPacific(100);

Note that TimeChangeRules require 12 bytes of storage each, so the the pair of
Note that TimeChangeRules require 12 bytes of storage each, so the pair of
rules associated with a Timezone object require 24 bytes total. This could
possibly change in future versions of the library. The size of a TimeChangeRule
can be checked via sizeof(), e.g.: sizeof(usEDT).
Expand Down
2 changes: 1 addition & 1 deletion Timezone.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------*
* Arduino Timezone Library v0.8 (Alpha version) *
* Arduino Timezone Library v1.0 *
* Jack Christensen Mar 2012 *
* *
* This work is licensed under the Creative Commons Attribution- *
Expand Down
2 changes: 1 addition & 1 deletion Timezone.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------*
* Arduino Timezone Library v0.8 (Alpha version) *
* Arduino Timezone Library v1.0 *
* Jack Christensen Mar 2012 *
* *
* This work is licensed under the Creative Commons Attribution- *
Expand Down

0 comments on commit f678b36

Please sign in to comment.