Go Down

Topic: ds1307new syntax (Read 429 times) previous topic - next topic

dr_no

:smiley-zipper: hello there..
i try to write in a simple ligne in my file the time and date . so
i use this sequence :

Code: [Select]
RTC.getTime();
        myFile.println(RTC.hour, DEC);
myFile.println(RTC.minute, DEC);
        myFile.println(RTC.second, DEC);

again for the date.... :smiley-fat:

but what i want is to write time and date only in one line like"myFile.println(RTC.time and date, DEC)";
do u think it's possible...what sequence void must i use ?? :smiley-eek:

holmes4

println() adds a newline at the end of your text. print() does not.

Mark

Krodal

You can use a part of the example here : http://playground.arduino.cc/Code/time

dr_no

:smiley-mr-green: ok it's realy works....

(so simple for u !!!)

thanks to every one..
best..

Go Up