[Python-ideas] Pythonic Dates, Times, and Deltas (original) (raw)

Marco Mariani birbag at gmail.com
Thu Oct 14 10:02:24 CEST 2010


On 13 October 2010 23:17, Alexander Belopolsky < alexander.belopolsky at gmail.com> wrote:

And I don't care about pythonic ranges if I have to push the values through a BETWEEN query in SQL.

import calendar import datetime

end = datetime.date(year, month, calendar.monthrange(year, month)[1]) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20101014/180f5efb/attachment.html>



More information about the Python-ideas mailing list