Go Down

Topic: Converting time date of DS1307 to Date/Time text string. (Read 503 times) previous topic - next topic

StanK

Hello,

I was wondering if any one has code that converts the RTC data from the DS1307 IC to a text format that is readable?
Or maybe where I could find it?

StanK

mrburnette


LarryD

#2
Aug 01, 2013, 02:36 am Last Edit: Aug 01, 2013, 02:54 am by LarryD Reason: 1
For example:

EDIT:
RTC is used to set the time then use :
#include <DateTime.h>
#include <DateTimeStrings.h>
http://playground.arduino.cc/Code/DateTime
examples:
Serial.print(DateTime.Hour,DEC); 
Serial.print(DateTimeStrings.dayStr(DateTime.DayofWeek));
Serial.print(DateTimeStrings.monthStr(DateTime.Month)); 
Serial.println(DateTime.Day, DEC);   
The way you have it in your schematic isn't the same as how you have it wired up!

Go Up