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.m,v 1.2 2007/01/24 10:43:33 anneke 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.m,v 1.2 2007/01/24 10:43:33 anneke 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 Mon 02-Jul-2007 12:19:41 by m2html © 2003