well i had been able to figure out how to get time and date...
#define SIZE 256
struct tm *loctime;
/* Get the current time. */
curtime = time (NULL);
/* Convert it to local time representation. */
loctime = localtime (&curtime);
/* Print out the date and time in the standard format. */
fputs (asctime (loctime), stdout);
/* Print it out in a nice format. */
strftime (buffer1, SIZE, " %x\n", loctime);
strftime (buffer2, SIZE, "%X", loctime);
but now wat i want to do is subtract 5 minutes from the current time...and get the new time..in same format..
can anybody suggest how a can do this?