On Tuesday, June 4, 2013 2:31:07 PM UTC-7, PieGuy wrote:
Starting on any day/date, I would like to create a one year list, by week
(start date could be any day of week). Having a numerical week index in
front of date, ie 1-52, would be a bonus.
ie, 1. 6/4/2013
2.
Starting on any day/date, I would like to create a one year list, by week
(start date could be any day of week). Having a numerical week index in front
of date, ie 1-52, would be a bonus.
ie, 1. 6/4/2013
2. 6/11/2013
3. 6/18/2013etc to # 52.
And to save that
On 4 June 2013 22:31, PieGuy r90...@gmail.com wrote:
Starting on any day/date, I would like to create a one year list, by week
(start date could be any day of week). Having a numerical week index in
front of date, ie 1-52, would be a bonus.
ie, 1. 6/4/2013
2. 6/11/2013
On 2013-06-04 14:31, PieGuy wrote:
Starting on any day/date, I would like to create a one year
list, by week (start date could be any day of week). Having a
numerical week index in front of date, ie 1-52, would be a bonus.
ie, 1. 6/4/2013 2. 6/11/2013 3. 6/18/2013etc to # 52.
On 2013-06-04, PieGuy wrote:
Starting on any day/date, I would like to create a one year list, by
week (start date could be any day of week). Having a numerical week
index in front of date, ie 1-52, would be a bonus.
ie, 1. 6/4/2013
2. 6/11/2013
3.
In b07dac48-1479-42cc-908c-21a3b2e14...@googlegroups.com PieGuy
r90...@gmail.com writes:
Starting on any day/date, I would like to create a one year list, by week
(start date could be any day of week). Having a numerical week index in
front of date, ie 1-52, would be a bonus.
ie,
Date: Tue, 4 Jun 2013 14:31:07 -0700
Subject: How to increment date by week?
From: r90...@gmail.com
To: python-list@python.org
Starting on any day/date, I would like to create a one year list, by week
(start date could be any day of week). Having a numerical week index in
front
Check out the rrule module in the python-dateutil package:
http://labix.org/python-dateutil
https://pypi.python.org/pypi/python-dateutil
Skip
--
http://mail.python.org/mailman/listinfo/python-list
pyfdate -- http://www.ferg.org/pyfdate/
from pyfdate import Time
w = Time(2013,1,2) # start with January 2, 2013, just for example
# print the ISO weeknumber and date for 52 weeks
# date looks like this: October 31, 2005
for i in range(52):
w = w.plus(weeks=1)
print (w.weeknumber, w.d)