Setting Date modified on files on SD card - Help needed

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Kimlorentz
 
Posts: 191
Joined: Mon Jun 23, 2014 7:11 am

Setting Date modified on files on SD card - Help needed

Post by Kimlorentz »

I got an:
MicroSD card breakout board+
Adafruit Ultimate GPS Breakout - 66 channel w/10 Hz updates - Version 3
Arduino Mega 2560 R3

I have no problem saving GPS data to the SD card true the MicroSD board. But I want to save the time and date to the Date modified information line on the file when reading from the PC. Is this possible? Can I get the RTC from the GPS to do this?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Setting Date modified on files on SD card - Help needed

Post by adafruit_support_rick »

The Arduino SD library does not save any file dates. This is a known issue.

Pleasse see this thread for a possible solution:
http://forum.arduino.cc/index.php?topic=72739.0

User avatar
Franklin97355
 
Posts: 23912
Joined: Mon Apr 21, 2008 2:33 pm

Re: Setting Date modified on files on SD card - Help needed

Post by Franklin97355 »

The SDfat library seems to have the ability to timestamp a file but I don't know about setting the Modify date.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”