send data to a server with gprs IN a given time!

I work with a arduino gprs shield , I can now send data from my sensor distance but i WANT TO SEND THIS Data in a exact TIME( AT 00:00 for exemple)???
I tryed to use datetime library but it gives nothing??? thanks for your help… javascript:void(0);

I tryed to use datetime library but it gives nothing?

Not even any code we can look at??????????????????????????????????????????????

I just send data now to server, I dont know how to send by time ? I try to use AT command but its so complex!! javascript:void(0);

I try to use AT command but its so complex!! javascript:void(0);

Still no code, complex or not.

I dont have my code now I will show you after ok,thanks

#include <SoftwareSerial.h>

SoftwareSerial mySerial(7, 8);
int IRpin = 0;

void setup()
{
mySerial.begin(19200); // the GPRS baud rate
Serial.begin(19200); // the GPRS baud rate
}

void loop()
{
if (Serial.available())
switch(Serial.read())
{

case ‘s’:
Send2Pachube();
break;
}

if (mySerial.available())
Serial.write(mySerial.read());

}

void Send2Pachube()
{
//------------------------------ ------
float volts = analogRead(IRpin); // value from sensor * (5/1024) - if running 3.3.volts then change 5 to 3.3
float distance = 10650.08 * pow(volts,-0.935) - 10;
Serial.println(distance); // print the distance
delay(1000);
//-------------------------------------

mySerial.println(“AT+CGATT?”);
mySerial.println(“AT+CSTT=“gprs.base.be””);//start task and setting the APN,
mySerial.println(“AT+CIICR”);//bring up wireless connection
mySerial.println(“AT+CIFSR”);//get local IP adress
mySerial.println(“AT+CIPSTART=“TCP”,“IP server”,“8020"”);
mySerial.println(“AT+CIPSEND”);//begin send data to remote server
mySerial.print(“GET /arduino/test.php?Distante=”);
mySerial.print(” HTTP/1.1\r\n");
mySerial.print(“HOST: server name:8020\r\n”);
mySerial.print(“accept: */”);
}
AND I WANT TO SEND THE DISTANCE ONLY AT 00:00H FOR EXEMPLE HOW WE CAN DO THAT ?
I tryed this command ( “AT+CCLK?” ); but I dont know how to extract just time hour and minute from this string wich gives a string DATETIME??thanks for ur help merci beaucoup ;-))))

SirHicham: AND I WANT TO SEND THE DISTANCE ONLY AT 00:00H FOR EXEMPLE HOW WE CAN DO THAT ?

Do you mean you want to submit the data at a specific time of day? Then you provide a way for your sketch to know what the time of day is. The easiest option is to add an RTC. Another option is to use NTP to read the time from another server over a network.

whatever the day the more important is the hour , I want tosend distance two times a day ,npn very complex to extract time :-(

anyway thank u very much...

You have your gprs connected to the smiley face pin? Which Arduino model has a smiley face pin?

ok I will try To use RTC I think Thanks man have a nice day...