Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!cs.uu.nl!news0.firedrake.org!news.nosignal.org!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.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'charset:iso-8859-7': 0.15; 'doesnt': 0.16; 'subject:issue': 0.16; 'cc:2**0': 0.23; 'this:': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'skip:d 20': 0.34; 'received:google.com': 0.34; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'either:': 0.91 Newsgroups: comp.lang.python Date: Sun, 16 Sep 2012 01:18:11 -0700 (PDT) In-Reply-To: <1774b70d-d3ad-414d-8460-bfa750b8f23f@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.84.56; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: <52847c35-388c-4758-b72d-1d1859b788a3@googlegroups.com> <8370412f-5176-45ff-87eb-72cbca5149d5@googlegroups.com> <1774b70d-d3ad-414d-8460-bfa750b8f23f@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.84.56 MIME-Version: 1.0 Subject: Re: datetime issue From: =?ISO-8859-7?B?zenq/Ovh7/Igyu/98eHy?= To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: , Message-ID: Lines: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347783494 news.xs4all.nl 6923 [2001:888:2000:d::a6]:57531 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29294 =D4=E7 =CA=F5=F1=E9=E1=EA=DE, 16 =D3=E5=F0=F4=E5=EC=E2=F1=DF=EF=F5 2012 10:= 51:18 =F0.=EC. UTC+3, =EF =F7=F1=DE=F3=F4=E7=F2 =CD=E9=EA=FC=EB=E1=EF=F2 = =CA=EF=FD=F1=E1=F2 =DD=E3=F1=E1=F8=E5: > dn =3D datetime.datetime.now() >=20 > dd =3D datetime.timedelta(hours=3D2) >=20 > date =3D dn + dd >=20 > date =3D date.strftime( '%y-%m-%d %H:%M:%S' ) >=20 >=20 >=20 > still giving me texas,us time for some reason which is same as this: date =3D ( datetime.datetime.now() + datetime.timedelta(hours=3D2) ).strfti= me( '%y-%m-%d %H:%M:%S') this also doesnt work either: date =3D ( datetime.datetime.now(hours=3D2).strftime( '%y-%m-%d %H:%M:%S') if only it would!