Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #59094

Re: datetime question

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!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 <ethan@stoneleaf.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.022
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'ascii': 0.09; 'dst': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; '~ethan~': 0.09; 'subject:question': 0.10; '11:19': 0.16; 'heap': 0.16; 'luck!': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:User- Agent:1': 0.23; 'mon,': 0.24; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'am,': 0.29; 'posting': 0.31; 'universal': 0.31; 'but': 0.35; 'add': 0.35; '+0200,': 0.36; 'adjust': 0.36; 'nov': 0.38; 'to:addr:python-list': 0.38; 'itself': 0.39; 'to:addr:python.org': 0.39; 'received:173': 0.61; 'happen': 0.63; 'received:69.56': 0.68; '8bit%:100': 0.72; 'basement': 0.84; 'boy,': 0.84; 'preventing': 0.84; '2013': 0.98
Date Mon, 11 Nov 2013 11:39:54 -0800
From Ethan Furman <ethan@stoneleaf.us>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
MIME-Version 1.0
To python-list@python.org
Subject Re: datetime question
References <l5jk15$de$1@dont-email.me> <l5q9me$lk6$1@dont-email.me> <l5rakv$kt3$1@dont-email.me>
In-Reply-To <l5rakv$kt3$1@dont-email.me>
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - gator3304.hostgator.com
X-AntiAbuse Original Domain - python.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - stoneleaf.us
X-BWhitelist no
X-Source
X-Source-Args
X-Source-Dir
X-Source-Sender ([173.12.184.233]) [173.12.184.233]:47386
X-Source-Auth ethan+stoneleaf.us
X-Email-Count 1
X-Source-Cap dG9idWs7dG9idWs7Z2F0b3IzMzA0Lmhvc3RnYXRvci5jb20=
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.2394.1384201602.18130.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1384201602 news.xs4all.nl 15894 [2001:888:2000:d::a6]:58642
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:59094

Show key headers only | View raw


On 11/11/2013 11:19 AM, Denis McMahon wrote:
> On Mon, 11 Nov 2013 11:57:36 +0200, Νίκος Αλεξόπουλος wrote:
>
>>> lastvisit = ( datetime.utcnow() + timedelta(hours=2) ).strftime(
>>> '%y-%m-%d %H:%M:%S' )        # MySQL datetime format
>
>> Someone has an idea what to add to this line to automatically adjust
>> itself if DST happens?
>
> Yes, but the scarcity of universal whitespace is preventing me from
> posting it.

Boy, are you in luck!  I just happen to have a whole heap of marked down ascii white-space at bargain basement prices!

--
~Ethan~

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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