Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
how to build a list of mx.DateTime objects from a start and enddate?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="M.-A. Lemburg, post: 1726568"] Not the fastest, but the easy to read: from mx.DateTime import Date, RelativeDate def daterange(startdate, enddate, delta=RelativeDate(months=+1)): l = [] date = startdate while date < enddate: l.append(date) date += delta return l -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Sep 16 2003)________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! :::: [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
how to build a list of mx.DateTime objects from a start and enddate?
Top