Sdfat Google Code Archive - Long-term storage for Google Code Project Hosting. supports timestamps on the Adafruit Data Logging Shield.
Look at the AnalogLogger example in the SdFat/examples folder.
Set USE_DS1307 nonzero at line 7
#define USE_DS1307 1 // set nonzero to use DS1307 RTC
At line 40 change the comments like this:
//#error remove this line and uncomment the next two lines.
#include <Wire.h>
#include <RTClib.h>