Skip to content

Commit

Permalink
BIG: introduced events, ezTime object now called time
Browse files Browse the repository at this point in the history
  • Loading branch information
ropg committed Sep 10, 2018
1 parent 133131b commit 635b40c
Show file tree
Hide file tree
Showing 8 changed files with 246 additions and 184 deletions.
111 changes: 61 additions & 50 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/NoNetwork/NoNetwork.ino
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void setup() {
Serial.println();

local.setPosix(LOCALTZ_POSIX);
local.setTime(ezTime.compileTime());
local.setTime(time.compileTime());
Serial.println("Local time : " + local.dateTime());

berlin.setPosix("CET-1CEST,M3.4.0/2,M10.4.0/3");
Expand Down
2 changes: 1 addition & 1 deletion examples/TimeFormats/TimeFormats.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ void setup() {
Serial.begin(115200);
WiFi.begin("your-ssid", "your-password");

ezTime.waitForSync();
time.waitForSync();

Serial.println();
Serial.println("Time in various internet standard formats ...");
Expand Down
2 changes: 1 addition & 1 deletion examples/Timezones/Timezones.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void setup() {
// Uncomment the line below to see what it does behind the scenes
// ezTime.debugLevel(INFO);

ezTime.waitForSync();
time.waitForSync();

Serial.println();
Serial.println("UTC: " + UTC.dateTime());
Expand Down
4 changes: 2 additions & 2 deletions examples/milliseconds/milliseconds.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ void setup() {
Serial.begin(115200);
WiFi.begin("your-ssid", "your-password");

ezTime.setInterval(60);
ezTime.waitForSync();
time.setInterval(60);
time.waitForSync();

Serial.println();

Expand Down
8 changes: 5 additions & 3 deletions keywords.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# ezTime object

ezTime KEYWORD3
time KEYWORD3
error KEYWORD2
errorString KEYWORD2
debugLevel KEYWORD2
timeStatus KEYWORD2
now KEYWORD2
events KEYWORD2
deleteEvent KEYWORD2
breakTime KEYWORD2
makeTime KEYWORD2
makeUmpteenthTime KEYWORD2
Expand All @@ -15,7 +17,7 @@ dayString KEYWORD2
secondChanged KEYWORD2
minuteChanged KEYWORD2
queryNTP KEYWORD2
updateNow KEYWORD2
updateNTP KEYWORD2
setServer KEYWORD2
setInterval KEYWORD2
waitForSync KEYWORD2
Expand All @@ -30,6 +32,7 @@ DefaultTZ KEYWORD3
setPosix KEYWORD2
getPosix KEYWORD2
tzTime KEYWORD2
setEvent KEYWORD2
setDefault KEYWORD2
isDST KEYWORD2
getTimezoneName KEYWORD2
Expand Down Expand Up @@ -155,4 +158,3 @@ SECOND LITERAL1
THIRD LITERAL1
FOURTH LITERAL1
LAST LITERAL1

Loading

0 comments on commit 635b40c

Please sign in to comment.