消息 [106229]
> As you explain in your own documentation, the proposed method
> is equivalent to ``(time.mktime(self.timetuple()), self.microsecond)``,
> so all it does is replacing a less than a one-liner.
a one-liner, but an horrible one liner :-) I don't like mixing datetime and time modules. I prefer to use only datetime, I prefer its API.
> ... If the tzinfo of the datetime object does not match the
> system TZ used by mktime, the result will be quite misleading.
Can you suggest a possible fix to take care of the timezone information? I don't know how to use that. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2010-05-21 11:26:42 | vstinner | 修改 | recipients:
+ vstinner, tim.peters, jribbens, srittau, guettli, amaury.forgeotdarc, tebeka, mark.dickinson, davidfraser, belopolsky, pitrou, andersjm, catlee, tomster, werneck, hodgestar, Neil Muller, erik.stephens, steve.roberts, Alexander.Belopolsky |
| 2010-05-21 11:26:41 | vstinner | 修改 | messageid: <1274441201.95.0.480701545945.issue2736@psf.upfronthosting.co.za> |
| 2010-05-21 11:26:40 | vstinner | 链接 | issue2736 messages |
| 2010-05-21 11:26:40 | vstinner | 创建 | |
|