Go Down

Topic: ds1307new syntax (Read 487 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
 


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