Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.163 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.68; '*S*': 0.01; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; '2.7': 0.14; 'bonus.': 0.16; 'index': 0.16; 'wrote:': 0.18; 'numerical': 0.19; 'subject:week': 0.19; 'cc:addr:python.org': 0.22; 'file.': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'received:209.85.217': 0.29; 'message-id:@mail.gmail.com': 0.30; 'front': 0.32; "we're": 0.32; 'url:python': 0.33; 'could': 0.34; 'received:209.85': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'starting': 0.37; 'url:library': 0.38; 'list,': 0.38; 'moving': 0.39; 'url:3': 0.61; 'you.': 0.62; 'save': 0.62; 'skip:6 10': 0.63; 'to:addr:gmail.com': 0.65; 'here': 0.66; 'date,': 0.68; 'started.': 0.68; 'day': 0.76; 'on?': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=gulWa1ARZnv84Okmo+NeGzC+9+p6odvwdlpf4np5P2Q=; b=RCtj6Fv12cNyTaSovgrOOaOIBju3Hz6aM14sZmDIU+ZtO8ND8shjbMEqPUyQw5EPa/ SgpNLef8YDQTAu5m7bo1uu5jVSl9wpOkbH2MpjOLFPmOc2LbjEF5SB+4UYnp8E7FeXFS ddhwSwQcEYqQPgVHADo49JhBq90SQgV3ccAq8Ja7VsitGBVbvv2X6wYlr9nst4NhPz0g J4vU538/lQu5u/32Gk/76n+P2fXlH3gFjdE4Jnf0z3cdznE8dO/pMKdhHBcj3CDoXSJZ g8ib8gBK993iBzWndx0tP50T6b/qr98A98wpfpQjlCrHE/irZPQmLGNw2H7X7vWrQh5l PqXw== X-Received: by 10.112.135.34 with SMTP id pp2mr13895405lbb.18.1370382332765; Tue, 04 Jun 2013 14:45:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Joshua Landau Date: Tue, 4 Jun 2013 22:44:52 +0100 Subject: Re: How to increment date by week? To: PieGuy Content-Type: text/plain; charset=UTF-8 Cc: python-list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370382334 news.xs4all.nl 15917 [2001:888:2000:d::a6]:56440 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46972 On 4 June 2013 22: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/2013....etc to # 52. > > And to save that result to a file. > Moving from 2.7 to 3.3 > TIA What have you tried? What are you stuck on? We're not here to do your work for you. See http://docs.python.org/3/library/datetime.html for where to get started.