    timestamp[12]='0';
  }
   sprintf(timestamp+15, "%d", year(t));
-
- 
+  
  timestamp[2]=':';
  timestamp[5]=':';
  timestamp[8]=',';
  timestamp[11]='/';
- timestamp[14]='/';
- 
+ timestamp[14]='/'; 
 }
 
 

    myFile.close();
  }
  else Serial.println("failed");
  delay(3000);
  
  
 
}

void getTimestamp(char *timestamp){

File myFile;
File myFile1;
File myFile2;

RRDSD archiveRRD;//
RRDSD archiveRRD2;
RRDSD myRRD;//

char dataBuffer[3];
char timestampBuffer[19]; 

int average(int intArray[], int length)
{
