Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #58871
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <joel.goldstick@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.062 |
| X-Spam-Evidence | '*H*': 0.88; '*S*': 0.00; 'detect': 0.07; 'alter': 0.09; 'lawrence': 0.09; 'subject:question': 0.10; 'cc:addr:python- list': 0.11; 'help?': 0.16; 'possible?': 0.16; 'wrote:': 0.18; 'thanks.': 0.20; 'written': 0.21; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'wondering': 0.29; 'statement': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'calculated': 0.31; 'url:python': 0.33; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'wrong': 0.37; 'nov': 0.38; 'pm,': 0.38; 'ability': 0.39; 'itself': 0.39; 'url:mail': 0.40; 'even': 0.60; 'manually': 0.60; 'to:addr:gmail.com': 0.65; 'saving': 0.69; '8bit%:92': 0.71; '8bit%:100': 0.72; 'saw': 0.77; 'joel': 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:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=MuFFkGSxhEUunsom21whjFbDXU9aqIfsbEi8vy/ef0w=; b=w5odCUdA46FiLsQJmFrz/rFq9c6yxh60Uw7zRKkAFTXU29TPN5I/wPJiXsXjD5OpLB 6axkBeA/YAKrwPrFRtcizLrWJJvNY6bXM3gY0K2OD07AvOxwpJKW17Su8QGaRqTDRanq P0ClHB1cUxg8trjVpdZgQZeG5wgTNgd0iSCKulqV+d8K0TWUNEsw7jGdS5mN999oO4M5 VRmKMsTIcfimH77NBeYElTKPNGbZFJhPZjoqiNuHny8mZaXwAz/dyJFMCb6y3SfoA8U0 E91iCQSj2IAY5xcg6m1Wdem2EnT9A6wPOsWwU1Vq1aDYyAu2RqLmV4n/nFoGs6VHjp1n gLUQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.37.36 with SMTP id v4mr7275vdj.54.1383948393826; Fri, 08 Nov 2013 14:06:33 -0800 (PST) |
| In-Reply-To | <l5jn00$kl8$1@dont-email.me> |
| References | <l5jk15$de$1@dont-email.me> <mailman.2262.1383946178.18130.python-list@python.org> <l5jn00$kl8$1@dont-email.me> |
| Date | Fri, 8 Nov 2013 17:06:33 -0500 |
| Subject | Re: datetime question |
| From | Joel Goldstick <joel.goldstick@gmail.com> |
| To | Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | "python-list@python.org" <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 <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2263.1383948396.18130.python-list@python.org> (permalink) |
| Lines | 42 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1383948396 news.xs4all.nl 15964 [2001:888:2000:d::a6]:43137 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:58871 |
Show key headers only | View raw
rurpy? can you help? On Fri, Nov 8, 2013 at 5:01 PM, Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> wrote: > Στις 8/11/2013 11:29 μμ, ο/η Mark Lawrence έγραψε: >> >> On 08/11/2013 21:11, Νίκος Αλεξόπουλος wrote: >>> >>> Is there someway to write the following line even better with the >>> ability to detect daylight saving time by itself so i don't have to >>> alter the line manually when time changes? >>> >>> lastvisit = ( datetime.utcnow() + timedelta(hours=2) ).strftime( >>> '%y-%m-%d %H:%M:%S' ) # MySQL datetime format >>> >>> Thanks. >> >> >> >> http://stackoverflow.com/questions/19774709/use-python-to-find-out-if-a-timezone-currently-in-daylight-savings-time >> >> > > > I saw the link and i'm wondering if it can be written in 1-liner. > Don't get me wrong but i had the lastvisit calculated on 1 statement and i > want to retain it this way. > > Is it possible? > -- > https://mail.python.org/mailman/listinfo/python-list -- Joel Goldstick http://joelgoldstick.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
datetime question Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-11-08 23:11 +0200
Re: datetime question Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-08 21:29 +0000
Re: datetime question Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-11-09 00:01 +0200
Re: datetime question Joel Goldstick <joel.goldstick@gmail.com> - 2013-11-08 17:06 -0500
Re: datetime question rurpy@yahoo.com - 2013-11-11 14:49 -0800
Re: datetime question Joel Goldstick <joel.goldstick@gmail.com> - 2013-11-11 18:18 -0500
Re: datetime question Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-08 22:18 +0000
Re: datetime question Grant Edwards <invalid@invalid.invalid> - 2013-11-08 22:29 +0000
Re: datetime question Chris Angelico <rosuav@gmail.com> - 2013-11-09 09:39 +1100
Re: datetime question Roy Smith <roy@panix.com> - 2013-11-09 10:30 -0500
Re: datetime question Gene Heskett <gheskett@wdtv.com> - 2013-11-09 10:39 -0500
Re: datetime question Chris Angelico <rosuav@gmail.com> - 2013-11-10 09:25 +1100
Re: datetime question Denis McMahon <denismfmcmahon@gmail.com> - 2013-11-08 22:49 +0000
Re: datetime question Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-11-09 01:02 +0200
Re: datetime question Robert Kern <robert.kern@gmail.com> - 2013-11-08 23:23 +0000
Re: datetime question Chris Angelico <rosuav@gmail.com> - 2013-11-09 10:30 +1100
Re: datetime question Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-09 00:12 +0000
Re: datetime question Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-09 12:45 +0000
Re: datetime question Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-11-09 15:43 +0200
Re: datetime question unknown <unknown@unknown.com> - 2013-11-10 12:52 +0000
Re: datetime question Chris Angelico <rosuav@gmail.com> - 2013-11-09 23:52 +1100
Re: datetime question Gene Heskett <gheskett@wdtv.com> - 2013-11-09 19:55 -0500
Re: datetime question Chris Angelico <rosuav@gmail.com> - 2013-11-10 19:47 +1100
Re: datetime question Gene Heskett <gheskett@wdtv.com> - 2013-11-10 04:13 -0500
Re: datetime question Νίκος Αλεξόπουλος <nikos.gr33k@gmail.com> - 2013-11-11 11:57 +0200
Re: datetime question Joel Goldstick <joel.goldstick@gmail.com> - 2013-11-11 08:41 -0500
Re: datetime question Roy Smith <roy@panix.com> - 2013-11-11 09:14 -0500
Re: datetime question Chris Angelico <rosuav@gmail.com> - 2013-11-12 01:25 +1100
Re: datetime question Joel Goldstick <joel.goldstick@gmail.com> - 2013-11-11 09:36 -0500
Re: datetime question Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-11-11 20:59 -0500
Re: datetime question Chris Angelico <rosuav@gmail.com> - 2013-11-12 13:02 +1100
Re: datetime question Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-11-11 21:02 -0500
Re: datetime question Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-11-12 19:30 -0500
Re: datetime question Chris Angelico <rosuav@gmail.com> - 2013-11-13 11:40 +1100
Re: datetime question Denis McMahon <denismfmcmahon@gmail.com> - 2013-11-11 19:19 +0000
Re: datetime question Ethan Furman <ethan@stoneleaf.us> - 2013-11-11 11:39 -0800
Re: datetime question Grant Edwards <invalid@invalid.invalid> - 2013-11-11 20:45 +0000
Re: datetime question mm0fmf <none@mailinator.com> - 2013-11-11 23:21 +0000
Re: datetime question Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-11 23:48 +0000
Re: datetime question Grant Edwards <invalid@invalid.invalid> - 2013-11-12 04:49 +0000
Re: datetime question alex23 <wuwei23@gmail.com> - 2013-11-12 17:25 +1000
Re: datetime question Chris Angelico <rosuav@gmail.com> - 2013-11-12 18:35 +1100
Re: datetime question Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-12 09:20 +0000
Re: datetime question Roy Smith <roy@panix.com> - 2013-11-12 09:18 -0500
Re: datetime question Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-11-12 12:15 +0200
Re: datetime question Andy Lawton <andy@andylawton.eu> - 2013-11-12 12:47 +0000
Re: datetime question Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-11-12 15:32 +0200
Re: datetime question Joel Goldstick <joel.goldstick@gmail.com> - 2013-11-12 09:03 -0500
Re: datetime question Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-11-12 16:12 +0200
Re: datetime question Chris Angelico <rosuav@gmail.com> - 2013-11-13 01:57 +1100
Re: datetime question Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-11-12 17:24 +0200
Re: datetime question Tim Chase <python.list@tim.thechases.com> - 2013-11-12 09:54 -0600
Re: datetime question Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-11-12 17:57 +0200
Re: datetime question Tim Chase <python.list@tim.thechases.com> - 2013-11-12 10:12 -0600
Re: datetime question William Ray Wing <wrw@mac.com> - 2013-11-12 11:14 -0500
Re: datetime question Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-12 16:30 +0000
Re: datetime question MRAB <python@mrabarnett.plus.com> - 2013-11-12 19:09 +0000
Re: datetime question Joel Goldstick <joel.goldstick@gmail.com> - 2013-11-12 14:14 -0500
Re: datetime question Denis McMahon <denismfmcmahon@gmail.com> - 2013-11-12 19:24 +0000
Re: datetime question Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-11-12 19:38 -0500
Re: datetime question Chris Angelico <rosuav@gmail.com> - 2013-11-13 09:42 +1100
Re: datetime question Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-11-12 19:37 -0500
Re: datetime question MRAB <python@mrabarnett.plus.com> - 2013-11-13 01:08 +0000
Re: datetime question Alister <alister.ware@ntlworld.com> - 2013-11-12 16:11 +0000
Re: datetime question Roy Smith <roy@panix.com> - 2013-11-12 19:43 -0500
Re: datetime question Denis McMahon <denismfmcmahon@gmail.com> - 2013-11-12 19:20 +0000
csiph-web