On Thu, 16 Jun 2005, Yitzchak Scott-Thoennes wrote:

On Wed, Jun 15, 2005 at 02:17:29PM -0500, Dave Rolsky wrote:
- Work with just dates and do date math on them (at the level of days,
months & years).  The current implementation is quite broken for this
purpose, because when you assign a non-UTC time zone to your object and do
date math, the math is done on the underlying UTC time, which causes weird
results.

Should not such work be always done with a floating tz?  If you are
working with just dates, giving any *time* zone is the wrong thing to
do.

Yeah, that's a good point. I'm just wondering if there's a way to help people not encounter bugs.

Right now DateTime tries hard to do the right thing but it doesn't always work out well. I fix one bug and create a different one, which is bad. I think this means that the module is trying to be too DWIM-my, when it should instead have a larger API, or be split into multiple packages.


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

Reply via email to