You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "Hyrum K. Wright" <hy...@mail.utexas.edu> on 2010/05/15 01:01:20 UTC

Re: strange python datetime issue on people.apache.org

This mail was sent to commits@subversion.apache.org.  Please don't send mail
to that list; it is for automatic commit notifications only.

On Fri, May 14, 2010 at 7:56 PM, Dongsheng Song <do...@gmail.com>wrote:

> Hi forks,
>
> On my windows box (UTC+8), the following python code give me 22724
> (python 2.6.5 or 3.1.2), but on people.apache.org
>
> (python 2.6.4), I got
> :22722:
>
> from datetime import datetime;
> dt = datetime.now() - datetime(2000, 1, 1, 0, 0, 0);
> round((dt.days * 24 + dt.seconds / 3600) / 4)
>
> or
>
> from datetime import datetime;
> dt = datetime.now(None) - datetime(2000, 1, 1, 0, 0, 0, 0, None);
> round((dt.days * 24 + dt.seconds / 3600) / 4)
>
> Is there anything wrong ?
>
> Regards,
> Dongsheng
>