Mac only: two epoch problem workarounds are no longer needed for GUSI

>= 2.0.5. One still is:-(
This commit is contained in:
Jack Jansen 2000-07-03 21:37:27 +00:00
parent 72b82ba16d
commit ee398fa058

View file

@ -259,7 +259,7 @@ time_convert(when, function)
{ {
struct tm *p; struct tm *p;
errno = 0; errno = 0;
#if defined(macintosh) && defined(USE_GUSI2) #if defined(macintosh) && defined(USE_GUSI204)
when = when + GUSI_TO_MSL_EPOCH; when = when + GUSI_TO_MSL_EPOCH;
#endif #endif
p = function(&when); p = function(&when);
@ -474,7 +474,7 @@ time_ctime(self, args)
if (!PyArg_Parse(args, "d", &dt)) if (!PyArg_Parse(args, "d", &dt))
return NULL; return NULL;
tt = (time_t)dt; tt = (time_t)dt;
#if defined(macintosh) && defined(USE_GUSI2) #if defined(macintosh) && defined(USE_GUSI204)
tt = tt + GUSI_TO_MSL_EPOCH; tt = tt + GUSI_TO_MSL_EPOCH;
#endif #endif
p = ctime(&tt); p = ctime(&tt);