[Python-checkins] python/nondist/sandbox/datetime obj_date.c,1.3,1.4
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Thu, 21 Nov 2002 11:29:15 -0800
- Previous message: [Python-checkins] python/nondist/sandbox/datetime datetime.c,1.13,1.14 datetime.h,1.6,1.7 obj_date.c,1.2,1.3 obj_datetime.c,1.2,1.3 obj_delta.c,1.2,1.3
- Next message: [Python-checkins] python/nondist/sandbox/datetime obj_datetime.c,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv12551
Modified Files:
obj_date.c
Log Message:
date_today(): Removed needless use of Unix-specific gettimeofday
function. This gets us a little close to compiling on Windows.
Index: obj_date.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/obj_date.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** obj_date.c 21 Nov 2002 19:24:53 -0000 1.3
--- obj_date.c 21 Nov 2002 19:29:12 -0000 1.4
***************
*** 369,382 ****
{
/* XXX need to create the instance by calling cls(y,mon,d,h,min,s,u) */
- struct timeval t;
struct tm *tm;
time_t timet;
! #ifdef GETTIMEOFDAY_NO_TZ
! gettimeofday(&t);
! #else /* !GETTIMEOFDAY_NO_TZ */
! gettimeofday(&t, (struct timezone *)NULL);
! #endif /* !GETTIMEOFDAY_NO_TZ */
! timet = t.tv_sec;
tm = localtime(&timet);
--- 369,376 ----
{
/* XXX need to create the instance by calling cls(y,mon,d,h,min,s,u) */
struct tm *tm;
time_t timet;
! time(&timet);
tm = localtime(&timet);
- Previous message: [Python-checkins] python/nondist/sandbox/datetime datetime.c,1.13,1.14 datetime.h,1.6,1.7 obj_date.c,1.2,1.3 obj_datetime.c,1.2,1.3 obj_delta.c,1.2,1.3
- Next message: [Python-checkins] python/nondist/sandbox/datetime obj_datetime.c,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]