00001 #pragma ident "$Id: TimeConstants.hpp 1162 2008-03-27 21:18:13Z snelsen $" 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00025 // 00026 // Copyright 2004, The University of Texas at Austin 00027 // 00028 //============================================================================ 00029 00030 namespace gpstk 00031 { 00033 const double MJD_TO_JD = 2400000.5; 00035 const long MJD_JDAY = 2400001L; 00037 const long GPS_EPOCH_JDAY = 2444245L; 00039 const long GPS_EPOCH_MJD = 44244L; 00041 const long UNIX_MJD = 40587L; 00042 00044 const long HALFWEEK = 302400L; 00046 const long FULLWEEK = 604800L; 00047 00049 const long WEEK_PER_EPOCH = 1024L; 00050 00052 const long SEC_PER_DAY = 86400L; 00054 const double DAY_PER_SEC = 1.0/SEC_PER_DAY; 00055 00057 const long MS_PER_SEC = 1000L; 00059 const double SEC_PER_MS = 1.0/MS_PER_SEC; 00060 00062 const long MS_PER_DAY = MS_PER_SEC * SEC_PER_DAY; 00064 const double DAY_PER_MS = 1.0/MS_PER_DAY; 00065 00067 const long ZCOUNT_PER_DAY = 57600L; 00069 const double DAY_PER_ZCOUNT = 1.0/ZCOUNT_PER_DAY; 00070 00072 const long ZCOUNT_PER_WEEK = 403200L; 00074 const double WEEK_PER_ZCOUNT = 1.0/ZCOUNT_PER_WEEK; 00075 00076 } // namespace 00077 00078 #endif // GPSTK_TIMECONSTANTS_HPP
1.3.9.1