Pages: [1]   Go Down
Author Topic: Converting time date of DS1307 to Date/Time text string.  (Read 464 times)
0 Members and 1 Guest are viewing this topic.
Aptos, California
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Atlanta, USA
Offline Offline
Edison Member
*
Karma: 55
Posts: 1812
AKA: Ray Burne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://playground.arduino.cc/Code/time

« Last Edit: July 31, 2013, 09:17:40 pm by mrburnette » Logged

Offline Offline
Faraday Member
**
Karma: 68
Posts: 2805
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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);   
« Last Edit: July 31, 2013, 07:54:00 pm by LarryD » Logged

The way you have it in your schematic isn't the same as how you have it wired up! That goes for me too.

Pages: [1]   Go Up
Jump to: