summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-03 21:37:27 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-07-03 21:37:27 (GMT)
commitee398fa058555d3229e48c323247f60f6f560313 (patch)
tree03fb506b8c97a4909081150075d14b8160b4659a /Modules/timemodule.c
parent72b82ba16dea929b3fa9db5208b2353e8449c2d5 (diff)
downloadcpython-ee398fa058555d3229e48c323247f60f6f560313.zip
cpython-ee398fa058555d3229e48c323247f60f6f560313.tar.gz
cpython-ee398fa058555d3229e48c323247f60f6f560313.tar.bz2
Mac only: two epoch problem workarounds are no longer needed for GUSI
>= 2.0.5. One still is:-(
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index aa0be80..984980c 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -259,7 +259,7 @@ time_convert(when, function)
{
struct tm *p;
errno = 0;
-#if defined(macintosh) && defined(USE_GUSI2)
+#if defined(macintosh) && defined(USE_GUSI204)
when = when + GUSI_TO_MSL_EPOCH;
#endif
p = function(&when);
@@ -474,7 +474,7 @@ time_ctime(self, args)
if (!PyArg_Parse(args, "d", &dt))
return NULL;
tt = (time_t)dt;
-#if defined(macintosh) && defined(USE_GUSI2)
+#if defined(macintosh) && defined(USE_GUSI204)
tt = tt + GUSI_TO_MSL_EPOCH;
#endif
p = ctime(&tt);