Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: datetime question Date: Tue, 12 Nov 2013 04:49:08 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 34 Message-ID: References: NNTP-Posting-Host: c-24-118-110-103.hsd1.mn.comcast.net X-Trace: reader1.panix.com 1384231748 4077 24.118.110.103 (12 Nov 2013 04:49:08 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Tue, 12 Nov 2013 04:49:08 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.lang.python:59149 On 2013-11-11, Mark Lawrence wrote: > On 11/11/2013 23:21, mm0fmf wrote: >> On 11/11/2013 19:39, Ethan Furman wrote: >>> 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! >> >> Is that metric or imperial whitespace? >> >> You need metric whitespace for programs written in Europe. > > Except for the UK, our multi-national approach means that both imperial > and metric whitespace are acceptable. Don't forget that there are also some differences between American and Imperial whitespace. Since it's ASCII whitespace, you should probably assume American... -- Grant