Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #59097 > unrolled thread

Re: dateutil.relativedelta.WE and friends?

Started bySkip Montanaro <skip@pobox.com>
First post2013-11-11 14:38 -0600
Last post2013-11-11 14:38 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: dateutil.relativedelta.WE and friends? Skip Montanaro <skip@pobox.com> - 2013-11-11 14:38 -0600

#59097 — Re: dateutil.relativedelta.WE and friends?

FromSkip Montanaro <skip@pobox.com>
Date2013-11-11 14:38 -0600
SubjectRe: dateutil.relativedelta.WE and friends?
Message-ID<mailman.2396.1384202340.18130.python-list@python.org>
damn gmail. Please ignore the drivel below (and this top post)...

Skip

On Mon, Nov 11, 2013 at 2:33 PM, Skip Montanaro <skip@pobox.com> wrote:
> 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)

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web