Re: [Tutor] Formatting date/time

2010-08-04 Thread Eduardo Vieira
On Wed, Aug 4, 2010 at 12:45 PM, Eric Hamiter wrote: > There are a few solutions here: > > http://stackoverflow.com/questions/904928/python-strftime-date-decimal-remove-0 > > Eric > > > On Wed, Aug 4, 2010 at 1:30 PM, Eduardo Vieira > wrote: >> >> I'm trying this example from python docs: >> from

Re: [Tutor] Formatting date/time

2010-08-04 Thread Joel Goldstick
On Wed, Aug 4, 2010 at 2:45 PM, Eric Hamiter wrote: > There are a few solutions here: > > > http://stackoverflow.com/questions/904928/python-strftime-date-decimal-remove-0 > > Eric > > > > On Wed, Aug 4, 2010 at 1:30 PM, Eduardo Vieira wrote: > >> I'm trying this example from python docs: >> from

Re: [Tutor] Formatting date/time

2010-08-04 Thread Eric Hamiter
There are a few solutions here: http://stackoverflow.com/questions/904928/python-strftime-date-decimal-remove-0 Eric On Wed, Aug 4, 2010 at 1:30 PM, Eduardo Vieira wrote: > I'm trying this example from python docs: > from time import gmtime, strftime > strftime("%a, %d %b %Y %H:%M:%S +", g

[Tutor] Formatting date/time

2010-08-04 Thread Eduardo Vieira
I'm trying this example from python docs: from time import gmtime, strftime strftime("%a, %d %b %Y %H:%M:%S +", gmtime()) Output = 'Wed, 04 Aug 2010 17:58:42 +' Is not there a string formatting option for the day without a leading zero? Like: 'Wed, 4 Aug 2010 17:58:42 +' It looks like