diff --git a/lib/util.C b/lib/util.C index 14e3e360cf..6b2d72646c 100755 --- a/lib/util.C +++ b/lib/util.C @@ -31,18 +31,6 @@ #include "error_numbers.h" #include "util.h" -// Convert UNIX time to Julian time -// -double time_t_to_jd(time_t unix_time) { - return (((double)unix_time)/SECONDS_PER_DAY+JD0); -} - -// Convert Julian time to UNIX time -// -time_t jd_to_time_t(double jd) { - return ((time_t)((jd-JD0)*SECONDS_PER_DAY)); -} - // Converts a double precision time (where the value of 1 represents // a day) into a string. smallest_timescale determines the smallest // unit of time division used diff --git a/lib/util.h b/lib/util.h index 22f34e758a..b5f365c3c7 100755 --- a/lib/util.h +++ b/lib/util.h @@ -19,8 +19,6 @@ #include -extern double time_t_to_jd(time_t unix_time); -extern time_t jd_to_time_t(double jd); extern int double_to_ydhms (double x, int smallest_timescale, char *buf); extern double dtime(); extern void boinc_sleep( int seconds ); @@ -33,13 +31,4 @@ extern void boinc_sleep( int seconds ); #define min(a,b) (((a) < (b)) ? (a) : (b)) #endif -#ifdef __MWERKS__ -// Note: Although Macintosh time is based on 1/1/1904, the -//MetroWerks Standard Libraries time routines use a base of 1/1/1900. -//#define JD0 2416480.5 /* Time at 0:00 GMT 1904 Jan 1 */ -#define JD0 2415020.5 /* Time at 0:00 GMT 1900 Jan 1 */ -#else -#define JD0 2440587.5 /* Time at 0:00 GMT 1970 Jan 1 */ -#endif - #define SECONDS_PER_DAY 86400