Go Down

Topic: Converting time date of DS1307 to Date/Time text string. (Read 646 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy