datetime question
Grant Edwards
invalid at invalid.invalid
Mon Nov 11 15:45:46 EST 2013
On 2013-11-11, Ethan Furman <ethan at stoneleaf.us> 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!
Careful, a lot of the cheap imported whitespace was made with toxic
lead carbonate instead of the non-toxic titatium oxide that should be
used...
--
Grant Edwards grant.b.edwards Yow! I'd like MY data-base
at JULIENNED and stir-fried!
gmail.com
More information about the Python-list
mailing list