Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #59095 > unrolled thread
| Started by | Skip Montanaro <skip@pobox.com> |
|---|---|
| First post | 2013-11-11 14:33 -0600 |
| Last post | 2013-11-11 14:33 -0600 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
dateutil.relativedelta.WE and friends? Skip Montanaro <skip@pobox.com> - 2013-11-11 14:33 -0600
| From | Skip Montanaro <skip@pobox.com> |
|---|---|
| Date | 2013-11-11 14:33 -0600 |
| Subject | dateutil.relativedelta.WE and friends? |
| Message-ID | <mailman.2395.1384201993.18130.python-list@python.org> |
I found a rather inscrutable use of dateutil recurrence rules in
StackOverflow which generates a series of dates corresponding to the
third Wednesday of the month:
import dateutil.rrule as dr
import dateutil.relativedelta as drel
dt = datetime.datetime(2012, 1, 1, 0, 0)
rule = dr.rrule(dr.MONTHLY, byweekday=drel.WE(3), dtstart=dt, count=12)
Back to top | Article view | comp.lang.python
csiph-web