SD card File Date & Time Stamp

Hello,

I'm new one, one more sorry... pretty basic yet ...

I'm using the Ardwuino 2560 Mega ADK with an EtherShield with the SD card slot.

I can get the SD card info and dir, also O got the Real time now() from an NTP provider over the internet.

But when I create my new files into the SD card all my files are created with the same Date and Time as :
2000-01-01 01:00:00

not eve using the actual got time form NTP not even using the Jan 1 1970 as when the NTP is not available.

Is there any other internal system time that has to be set for the SD filesytem ?

Or issomethibg just not available for the Arduino File System ?

THanks

adrarduino:
Is there any other internal system time that has to be set for the SD filesytem ?

Or issomethibg just not available for the Arduino File System ?

You can do it with an on-board RealTime Clock like the DS1307. In my projects, this is only used for backup to SD. Data aquired by local PC goes with the PC clock, and that sent over internet is timestamped at the other end.

You can use the clock to create a new file everyday, named with the date. It is then just a matter of printing the hour, minute, second to file along with the data.

Install the SdFat library - there is an example called Timestamp.ino describing in detail how to do it..