TimeConstants.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: TimeConstants.hpp 3140 2012-06-18 15:03:02Z susancummins $"
00002 
00003 
00004 
00005 #ifndef GPSTK_TIMECONSTANTS_HPP
00006 #define GPSTK_TIMECONSTANTS_HPP
00007 
00008 //============================================================================
00009 //
00010 //  This file is part of GPSTk, the GPS Toolkit.
00011 //
00012 //  The GPSTk is free software; you can redistribute it and/or modify
00013 //  it under the terms of the GNU Lesser General Public License as published
00014 //  by the Free Software Foundation; either version 2.1 of the License, or
00015 //  any later version.
00016 //
00017 //  The GPSTk is distributed in the hope that it will be useful,
00018 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020 //  GNU Lesser General Public License for more details.
00021 //
00022 //  You should have received a copy of the GNU Lesser General Public
00023 //  License along with GPSTk; if not, write to the Free Software Foundation,
00024 //  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
00025 //  
00026 //  Copyright 2004, The University of Texas at Austin
00027 //
00028 //============================================================================
00029 
00030 //============================================================================
00031 //
00032 //This software developed by Applied Research Laboratories at the University of
00033 //Texas at Austin, under contract to an agency or agencies within the U.S. 
00034 //Department of Defense. The U.S. Government retains all rights to use,
00035 //duplicate, distribute, disclose, or release this software. 
00036 //
00037 //Pursuant to DoD Directive 523024 
00038 //
00039 // DISTRIBUTION STATEMENT A: This software has been approved for public 
00040 //                           release, distribution is unlimited.
00041 //
00042 //=============================================================================
00043 
00044 namespace gpstk
00045 {
00047    const double MJD_TO_JD = 2400000.5;
00049    const long MJD_JDAY = 2400001L;
00051    const long GPS_EPOCH_JDAY = 2444245L;
00053    const long GPS_EPOCH_MJD = 44244L;
00055    const long UNIX_MJD = 40587L;
00056 
00058    const long HALFWEEK = 302400L;
00060    const long FULLWEEK = 604800L;
00061 
00063    const long WEEK_PER_EPOCH = 1024L;
00064 
00066    const long SEC_PER_DAY = 86400L;
00068    const double DAY_PER_SEC = 1.0/SEC_PER_DAY;
00069 
00071    const long MS_PER_SEC = 1000L;
00073    const double SEC_PER_MS = 1.0/MS_PER_SEC;
00074    
00076    const long MS_PER_DAY = MS_PER_SEC * SEC_PER_DAY;
00078    const double DAY_PER_MS = 1.0/MS_PER_DAY;
00079 
00081    const long ZCOUNT_PER_DAY = 57600L;
00083    const double DAY_PER_ZCOUNT = 1.0/ZCOUNT_PER_DAY;
00084 
00086    const long ZCOUNT_PER_WEEK = 403200L;
00088    const double WEEK_PER_ZCOUNT = 1.0/ZCOUNT_PER_WEEK;
00089 
00090 } // namespace
00091 
00092 #endif // GPSTK_TIMECONSTANTS_HPP

Generated on Fri May 24 03:31:13 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1