OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] Issue 2736: datetimes and Unix timestamps


On Mon, Jun 4, 2012 at 3:05 PM, Guido van Rossum <guido at python.org> wrote:
> You seem to have misread -- I don't want to check if they are exactly
> 24 hours apart. I want to check if they are at most 24 hours apart.
> The timezone can be assumed to be the same on dt1 and dt2.
>
> A variant of (1) was what was needed -- the user had just confused
> themselves into thinking they needed to convert to UTC first, and done
> a poor job of that. This is a common situation.

It looks like if we had datetime.ticks() method, the user would simply
use it improperly and never ask his or her question.  Hardly the
result that we want.