main reminder functionality
Dependencies: mbed 4DGL-uLCD-SE SDFileSystem
Diff: main.cpp
- Revision:
- 2:f5f8c11849a2
- Parent:
- 1:29de429a7e15
- Child:
- 3:3eda3d120742
diff -r 29de429a7e15 -r f5f8c11849a2 main.cpp --- a/main.cpp Mon Dec 05 20:06:56 2016 +0000 +++ b/main.cpp Mon Dec 05 20:11:52 2016 +0000 @@ -66,7 +66,8 @@ int current_time = schedule_read(); //uLCD.printf("current time set to: %i", current_time); - set_time(current_time); // Set RTC time to Wed, 28 Oct 2009 14:24:30 + set_time(current_time-18000); // Set RTC time to Wed, 28 Oct 2009 14:24:30 + // subtract 5*60*60 for eastern time time_t clock; time_t seconds = time(NULL); uLCD.printf("Time as a basic string = %s", ctime(&seconds));