datetime question
Roy Smith
roy at panix.com
Tue Nov 12 09:18:58 EST 2013
In article <l5sc04$3vd$1 at reader1.panix.com>,
Grant Edwards <invalid at invalid.invalid> wrote:
> On 2013-11-11, Mark Lawrence <breamoreboy at yahoo.co.uk> 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...
And don't assume that the whitespace you find in a red state is the same
as you'll find in a blue state.
More information about the Python-list
mailing list