Home > m > timetools > ltpda_gps2utc.m

ltpda_gps2utc

PURPOSE ^

LTPDA_GPS2UTC converts GPS seconds to UTC time.

SYNOPSIS ^

function UTC_time=ltpda_gps2utc(GPS_time)

DESCRIPTION ^

 LTPDA_GPS2UTC converts GPS seconds to UTC time.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: LTPDA_GPS2UTC converts GPS seconds to UTC time.

 CALL:        UTC_time=ltpda_GPS2UTC(GPS_time)

 FORMAT:      UTC time format: 'yyy-mm-dd- HH:MM:SS'
              GPS time format: Seconds since 6. January 1980

    EXAMPLES:    GPS_time=ltpda_GPS2UTC(711129613)
                 GPS_time='2002-07-19 16:00:00'

 VERSION:     $Id: ltpda_gps2utc.html,v 1.14 2008/03/31 10:27:44 hewitson Exp $

 HISTORY:     xx-xx-xxxx Karsten Koetter
                 Creation
              24-01-2007 M Hewitson.
                 Maintained

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function UTC_time=ltpda_gps2utc(GPS_time)
0002 % LTPDA_GPS2UTC converts GPS seconds to UTC time.
0003 %
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: LTPDA_GPS2UTC converts GPS seconds to UTC time.
0007 %
0008 % CALL:        UTC_time=ltpda_GPS2UTC(GPS_time)
0009 %
0010 % FORMAT:      UTC time format: 'yyy-mm-dd- HH:MM:SS'
0011 %              GPS time format: Seconds since 6. January 1980
0012 %
0013 %    EXAMPLES:    GPS_time=ltpda_GPS2UTC(711129613)
0014 %                 GPS_time='2002-07-19 16:00:00'
0015 %
0016 % VERSION:     $Id: ltpda_gps2utc.html,v 1.14 2008/03/31 10:27:44 hewitson Exp $
0017 %
0018 % HISTORY:     xx-xx-xxxx Karsten Koetter
0019 %                 Creation
0020 %              24-01-2007 M Hewitson.
0021 %                 Maintained
0022 %
0023 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0024 
0025 GPS_Epoch=datenum('01-06-1980 00:00:00')*86400;
0026 NUM_time=GPS_Epoch+GPS_time-14;
0027 
0028 UTC_time=datestr(NUM_time/86400,31);

Generated on Mon 31-Mar-2008 12:20:24 by m2html © 2003