Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.081 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.00; 'subject:question': 0.10; 'cc:addr:python-list': 0.11; '-tkc': 0.16; 'internally': 0.16; 'received:mac.com': 0.16; 'then?': 0.16; 'utc': 0.16; 'wrote:': 0.18; 'possible,': 0.19; 'received:10.0.1': 0.19; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'cc:no real name:2**0': 0.24; 'am,': 0.29; 'thus': 0.29; 'tim': 0.29; 'chase': 0.31; 'issuing': 0.31; 'operations.': 0.31; 'run': 0.32; 'linux': 0.33; 'totally': 0.33; 'convert': 0.35; 'but': 0.35; 'received:10.0': 0.36; 'should': 0.36; 'received:10': 0.37; 'server': 0.38; 'nov': 0.38; 'received:17': 0.38; 'tasks': 0.38; '12,': 0.39; 'bill': 0.39; 'hosted': 0.39; 'how': 0.40; 'back': 0.62; 'soon': 0.63; 'to:addr:gmail.com': 0.65; 'presented': 0.69; '8bit%:92': 0.71; 'header:In-reply-to:1': 0.84; 'housekeeping': 0.84; '2013,': 0.91 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794,1.0.431,0.0.0000 definitions=2013-11-12_06:2013-11-12,2013-11-12,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1308280000 definitions=main-1311120111 Content-type: text/plain; charset=utf-8 MIME-version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: datetime question From: William Ray Wing In-reply-to: Date: Tue, 12 Nov 2013 11:14:04 -0500 Content-transfer-encoding: quoted-printable References: To: Ferrous Cranus X-Mailer: Apple Mail (2.1510) Cc: python-list@python.org, William Ray Wing 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384272864 news.xs4all.nl 15919 [2001:888:2000:d::a6]:58098 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59217 On Nov 12, 2013, at 10:57 AM, Ferrous Cranus = wrote: > =CE=A3=CF=84=CE=B9=CF=82 12/11/2013 5:54 =CE=BC=CE=BC, =CE=BF/=CE=B7 = Tim Chase =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: >> On 2013-11-12 17:24, Ferrous Cranus wrote: >>> But what of the server was in California and i live in Greece? >>>=20 >>> How would datetime.now() work then? >>=20 >> 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. >>=20 >> -tkc >>=20 >>=20 >>=20 >=20 > or perhaps by confiruing the timezone of the server to use Greece's = TimeZone by issuing a linux command? > --=20 >=20 Thus totally screwing all the other users/sites hosted on that server? = Thus totally screwing up all the housekeeping and maintenance OS tasks = that are run by chron jobs? Shakes head in dismay... Bill=