Skip to content

Commit

Permalink
Merge pull request #122 from jeot/patch-1
Browse files Browse the repository at this point in the history
Correct example ds1307.ino
  • Loading branch information
drak7 authored Sep 17, 2019
2 parents 7438ab0 + 480fbec commit 997dd0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/ds1307/ds1307.ino
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ void loop () {
Serial.print(now.unixtime() / 86400L);
Serial.println("d");

// calculate a date which is 7 days and 30 seconds into the future
// calculate a date which is 7 days, 12 hours, 30 minutes, and 6 seconds into the future
DateTime future (now + TimeSpan(7,12,30,6));

Serial.print(" now + 7d + 30s: ");
Serial.print(" now + 7d + 12h + 30m + 6s: ");
Serial.print(future.year(), DEC);
Serial.print('/');
Serial.print(future.month(), DEC);
Expand Down

0 comments on commit 997dd0a

Please sign in to comment.