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


Groups > comp.lang.python > #59227

Re: datetime question

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python@mrabarnett.plus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.044
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; '(especially': 0.07; 'dst': 0.09; 'subject:question': 0.10; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'internally': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'utc': 0.16; 'wrote:': 0.18; 'possible,': 0.19; 'header:User-Agent:1': 0.23; 'regardless': 0.24; 'header:In-Reply-To:1': 0.27; 'tim': 0.29; 'chase': 0.31; 'issuing': 0.31; 'operations.': 0.31; 'us)': 0.31; 'linux': 0.33; 'says': 0.33; 'possible.': 0.35; 'convert': 0.35; 'received:84': 0.35; 'possible': 0.36; 'should': 0.36; 'server': 0.38; 'configured': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'back': 0.62; 'soon': 0.63; 'here': 0.66; 'header:Reply-To:1': 0.67; 'presented': 0.69; 'reply-to:no real name:2**0': 0.71; 'greece': 0.84; 'reply-to:addr:python.org': 0.84; 'suffer': 0.93
X-CM-Score 0.00
X-CNFS-Analysis v=2.1 cv=IvYnLtPg c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=2LCq-pQfA8cA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=ByyeTtMjVaIA:10 a=1zeZ5CVgQHKTZDswR2oA:9 a=wPNLvfGTeEIA:10
X-AUTH mrabarnett:2500
Date Tue, 12 Nov 2013 19:09:11 +0000
From MRAB <python@mrabarnett.plus.com>
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
MIME-Version 1.0
To python-list@python.org
Subject Re: datetime question
References <l5jk15$de$1@dont-email.me> <l5sv4a$a2$1@dont-email.me> <mailman.2459.1384260501.18130.python-list@python.org> <l5tam0$a2$2@dont-email.me> <mailman.2463.1384265037.18130.python-list@python.org> <l5td0v$a2$4@dont-email.me> <mailman.2466.1384268259.18130.python-list@python.org> <l5th81$a2$5@dont-email.me> <mailman.2472.1384271596.18130.python-list@python.org> <l5tj62$a2$6@dont-email.me> <20131112101232.298764b5@bigbox.christie.dr>
In-Reply-To <20131112101232.298764b5@bigbox.christie.dr>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To python-list@python.org
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.2486.1384283359.18130.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1384283359 news.xs4all.nl 15886 [2001:888:2000:d::a6]:55651
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:59227

Show key headers only | View raw


On 12/11/2013 16:12, Tim Chase wrote:
> On 2013-11-12 17:57, Ferrous Cranus wrote:
>> > Best practices say to move the value from local time to UTC as
>> > soon as possible, then store/use the UTC time internally for all
>> > operations.  Only when it's about to be presented to the user
>> > should you convert it back to local time if you need to.
>>
>> or perhaps by confiruing the timezone of the server to use Greece's
>> TimeZone by issuing a linux command?
>
> Regardless of the server's configured TZ, best practice still says to
> normalize everything to UTC (ESPECIALLY if Greece uses the
> abomination of DST that we suffer here in the US) as soon as
> possible and keep it that way for as long as possible.
>
FTR, the countries in the EU all change at the same (UTC) time.

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