Re: Altering 2 statements from Python 2.6 => 3.2

2013-03-28 Thread Νίκος Γκρ33κ
I'am just tryign to print the date with proper greek letters as it uses to work with Python v2.6 date gets calculated here: date = ( datetime.utcnow() + timedelta(hours=2) ).strftime( '%y-%m-%d %H:%M:%S' ) I'am not sure but i believe that the decode must be taken out in python 3.x because

Re: Altering 2 statements from Python 2.6 => 3.2

2013-03-27 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 28 Μαρτίου 2013 4:28:04 π.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > On Thu, Mar 28, 2013 at 1:16 PM, Νίκος Γκρ33κ wrote: > > > Τη Πέμπτη, 28 Μαρτίου 2013 12:55:11 π.μ. UTC+2, ο χρήστης Chris Angelico > > έγραψε: > > >> On Thu, Mar 28, 2013 at 7:18 AM, Νίκος Γκρ33κ > >> wrote: >

Re: Altering 2 statements from Python 2.6 => 3.2

2013-03-27 Thread Chris Angelico
On Thu, Mar 28, 2013 at 1:16 PM, Νίκος Γκρ33κ wrote: > Τη Πέμπτη, 28 Μαρτίου 2013 12:55:11 π.μ. UTC+2, ο χρήστης Chris Angelico > έγραψε: >> On Thu, Mar 28, 2013 at 7:18 AM, Νίκος Γκρ33κ wrote: >> >> > date = date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8') >> >> >> >> For a start,

Re: Altering 2 statements from Python 2.6 => 3.2

2013-03-27 Thread Νίκος Γκρ33κ
Τη Πέμπτη, 28 Μαρτίου 2013 12:55:11 π.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: > On Thu, Mar 28, 2013 at 7:18 AM, Νίκος Γκρ33κ wrote: > > > date = date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8') > > > > For a start, figure out what you're trying to do. I'm trying to get my > >

Re: Altering 2 statements from Python 2.6 => 3.2

2013-03-27 Thread Chris Angelico
On Thu, Mar 28, 2013 at 7:18 AM, Νίκος Γκρ33κ wrote: > date = date.strftime('%A, %e %b %Y').decode('cp1253').encode('utf8') For a start, figure out what you're trying to do. I'm trying to get my head around this line and I'm not getting anywhere. Is 'date' an instance of datetime.date()? And what