➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 pboddie
收信人
日期 2007-03-23.00:21:32
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
内容
I've enhanced your version of the patch to work with the following defines:

#define HAVE_TZNAME 1
#undef HAVE_TM_ZONE
#undef HAVE_STRUCT_TM_TM_ZONE
#undef HAVE_ALTZONE

It now uses struct_time in such an environment to provide the extra offset information used in the unixtime function rather than accessing tm_gmtoff. I suppose one could do that for all cases, in fact, since this is done independently of any mktime invocation.

The above defines probably represent the next most "sane" of environments after those which have tm_gmtoff. If one starts to remove other things, other more established tests seem to fail, too.
File Added: time-1-improved.diff
历史
日期 用户 动作 参数
2007-08-23 15:56:40admin链接issue1667546 messages
2007-08-23 15:56:40admin创建