GPS interfacing with Arduino uno problem

The GPS module I am using is Neo6m.I am also using a S1315RL GPS module.Both the GPS are giving me the same problem.The problem is that it is not showing the accurate time and hence no latitude or longitude.Example at 21:00 it gives 14:35.

The only GPS I've ever used is adafruit's "Ultimate" for which they supply a library. Do you need / have the right library for the ones you have?

Stayne:
The GPS module I am using is Neo6m.I am also using a S1315RL GPS module.Both the GPS are giving me the same problem.The problem is that it is not showing the accurate time and hence no latitude or longitude.Example at 21:00 it gives 14:35.

I think you have it backwards - it doesn't know the lat/long or anything else and hence doesn't know the time. There are two main possibilities:

  1. You are in a location where satellite reception is poor or non-existent.
  2. Your GPS library is flawed.

We need more details about those two things, in order to help you.

Assuming you're parsing the sentences at all, what does it show for if you're getting a fix or not?

Are you outdoors?... my house has old style corrugated iron roof and doesn't let me get any GPS reception to speak of.

Funny that neither is working, unless of course they use same library in which case that could be it.

You should always begin a GPS debug by looking at the raw serial NMEA sentences coming out of the unit.