How to get time from gps

how to get time from gps in arducopter. i need to compare time from gps and another parameter.