rurpy? can you help? On Fri, Nov 8, 2013 at 5:01 PM, Νίκος Αλεξόπουλος <nikos.gr...@gmail.com> wrote: > Στις 8/11/2013 11:29 μμ, ο/η Mark Lawrence έγραψε: >> >> On 08/11/2013 21:11, Νίκος Αλεξόπουλος wrote: >>> >>> Is there someway to write the following line even better with the >>> ability to detect daylight saving time by itself so i don't have to >>> alter the line manually when time changes? >>> >>> lastvisit = ( datetime.utcnow() + timedelta(hours=2) ).strftime( >>> '%y-%m-%d %H:%M:%S' ) # MySQL datetime format >>> >>> Thanks. >> >> >> >> http://stackoverflow.com/questions/19774709/use-python-to-find-out-if-a-timezone-currently-in-daylight-savings-time >> >> > > > I saw the link and i'm wondering if it can be written in 1-liner. > Don't get me wrong but i had the lastvisit calculated on 1 statement and i > want to retain it this way. > > Is it possible? > -- > https://mail.python.org/mailman/listinfo/python-list
-- Joel Goldstick http://joelgoldstick.com -- https://mail.python.org/mailman/listinfo/python-list