Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!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.043 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'received:209.85.223': 0.03; 'parsing': 0.07; 'dec': 0.15; 'options.': 0.15; 'subject:dates': 0.16; 'wrote:': 0.17; 'appropriate': 0.20; 'greg': 0.22; 'parse': 0.22; "i'd": 0.22; 'header:In-Reply-To:1': 0.25; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; "d'aprano": 0.29; 'steven': 0.29; 'source': 0.29; '11,': 0.33; 'dates': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'more': 0.63; 'correctly?': 0.84; 'dial': 0.84; 'donald': 0.84; 'tasked': 0.84 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 :content-type; bh=iymso5TuzI1C/k8LcmnXM34ONMiIWBn481+oDCkVKcE=; b=mQR6f2kAWh2202Y27WL76V8w2apOnEO0SNJsMRzx1diU54j7douPeiosrD0deOS7Hz 8hTka9blW5JxRNP295uQiuqjJ/mN2SVhRqW4TYG5y/i/Q/6INeYA+P9Voues+XlTSGAI 9AIge+CG8cM5uScM4XXF4YMwf0NCfGyvIS4bdqoBRrwQkIF3B/ExT+0s6uxrV3Uc1Lxr MyRrCFfRxfnO6vAgOfIyUK+TKSGku6oI1EWrIdiInUWnP5aZreBvH/uv22qhmPraKjIt 5+JfNdGw1tsERUu9052dBqoyjwZPL86X837CcL7jKnO5JsdRbC9T33/s0n0OImrv2Zum OZPA== MIME-Version: 1.0 In-Reply-To: <50c81081$0$21722$c3e8da3$76491128@news.astraweb.com> References: <50C6C5E7.1030300@gmail.com> <50c81081$0$21722$c3e8da3$76491128@news.astraweb.com> From: Greg Donald Date: Tue, 11 Dec 2012 23:29:12 -0600 Subject: Re: strptime - dates formatted differently on different computers To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1355290176 news.xs4all.nl 6904 [2001:888:2000:d::a6]:44110 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34684 On Tue, Dec 11, 2012 at 11:05 PM, Steven D'Aprano wrote: > The question is not "will it parse", but will it parse CORRECTLY? > > What will it parse 11/12/10 as, and how do you know that is the intended > date? If it were me I'd look at more of the source dates I was tasked with parsing and dial it in using the appropriate dayfirst, yearfirst, etc. options. -- Greg Donald