Home > m > timetools > ltpda_gps2utc.m

ltpda_gps2utc

PURPOSE ^

UTC_time=ltpda_GPS2UTC(GPS_time)

SYNOPSIS ^

function UTC_time=ltpda_gps2utc(GPS_time)

DESCRIPTION ^

    UTC_time=ltpda_GPS2UTC(GPS_time)
    converts GPS seconds to UTC time

    Example:
    UTC_time=ltpda_gps2utc(711129613)
    will return UTC_time='2002-07-19 16:00:00'

 Original by Karsten Koetter. Maintained by M Hewitson.

 $Id: ltpda_gps2utc.html,v 1.1 2007/06/08 14:15:11 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function UTC_time=ltpda_gps2utc(GPS_time)
0002 %    UTC_time=ltpda_GPS2UTC(GPS_time)
0003 %    converts GPS seconds to UTC time
0004 %
0005 %    Example:
0006 %    UTC_time=ltpda_gps2utc(711129613)
0007 %    will return UTC_time='2002-07-19 16:00:00'
0008 %
0009 % Original by Karsten Koetter. Maintained by M Hewitson.
0010 %
0011 % $Id: ltpda_gps2utc.html,v 1.1 2007/06/08 14:15:11 hewitson Exp $
0012 %
0013 
0014 GPS_Epoch=datenum('01-06-1980 00:00:00')*86400;
0015 NUM_time=GPS_Epoch+GPS_time-14;
0016 
0017 UTC_time=datestr(NUM_time/86400,31);

Generated on Fri 08-Jun-2007 16:09:11 by m2html © 2003