Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:into': 0.09; 'subject:number': 0.09; 'subject:string': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'module?': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'not,': 0.20; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'lets': 0.24; 'module,': 0.24; 'cc:2**0': 0.24; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'subject:time': 0.33; 'subject:the': 0.34; 'problem': 0.35; 'received:google.com': 0.35; '14,': 0.36; 'module.': 0.36; 'subject:?': 0.36; 'step': 0.37; 'how': 0.40; 'read': 0.60; 'different': 0.65; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=NOaW7/C466ZQr6z+akpHJ4j2gl0Z8hC+L9EckEyHM9c=; b=za3t710Uwm//gnoovoDr2Zf3SWV+zZVDUXosC4n446+UE17rXWl1a/bT4n8jr8gMuz Zj422VQ2FY3/9fLGQnOzRPjDwEdhJzUa+EQDKGw+bysG4w+8u62VYCytKlwlbI/dvwPD Q3/Okyl1cp4rEg0UHGuPhLmVHz+BOPsgzxyGGXGEjbuAP+JDR0yw1qC2Piicggc1AxIe bsU8xPO4QbEgQqp/MjxiecTvhue5YGKI2hAa6uLzgTSE47XVeIDFyhXc3IH935g2pHwm bkl27Tudf08baIoqZbEuvyHE3Ng1zmedtp3bOuq8PYu393Ik3I5WZ/X6YckB5MPvmonL 5ghA== MIME-Version: 1.0 X-Received: by 10.42.58.210 with SMTP id j18mr10944841ich.2.1407981318943; Wed, 13 Aug 2014 18:55:18 -0700 (PDT) In-Reply-To: <53EC14EC.2090503@gmail.com> References: <53EC14EC.2090503@gmail.com> Date: Thu, 14 Aug 2014 11:55:18 +1000 Subject: Re: how to change the time string into number? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1407981320 news.xs4all.nl 2919 [2001:888:2000:d::a6]:32948 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76242 On Thu, Aug 14, 2014 at 11:46 AM, luofeiyu wrote: > s="Aug" > > how can i change it into 8 with some python time module? Is this homework? If not, let me set you some homework. Step 1: Read the docs for some Python time module. Step 2: See if it lets you do what you want. Step 3: Return to step 1 with a different module, until your problem is solved. ChrisA