datetime question
Denis McMahon
denismfmcmahon at gmail.com
Mon Nov 11 14:19:59 EST 2013
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.
--
Denis McMahon, denismfmcmahon at gmail.com
More information about the Python-list
mailing list