homepage

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.

Author odianus
Recipients odianus
Date 2015年09月17日.12:16:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442492218.93.0.0814077677929.issue25149@psf.upfronthosting.co.za>
In-reply-to
Content
I've stumbled over an odd datetime.weekday() behaviour in Python 2.7.8 (default, Jun 18 2015, 18:54:19) [GCC 4.9.1] on linux2) under Ubuntu. weekday() is off by 1.
Code to reproduce:
from datetime import datetime
date = datetime.utcfromtimestamp(int('1410446564')) # datetime.datetime(2014, 9, 11, 14, 42, 44)
date.weekday() # should be 4, not 3
I can reproduce this behaviour on our dev and production systems, and just tested it locally with python 3.4.3.
Since I'm not a smart man, I might overlook something silly...
History
Date User Action Args
2015年09月17日 12:16:58odianussetrecipients: + odianus
2015年09月17日 12:16:58odianussetmessageid: <1442492218.93.0.0814077677929.issue25149@psf.upfronthosting.co.za>
2015年09月17日 12:16:58odianuslinkissue25149 messages
2015年09月17日 12:16:58odianuscreate

AltStyle によって変換されたページ (->オリジナル) /