I figured it out finally.
For anybody who is interested. I have this setup for showing multiple
tweets:
settings.py:
from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
TEMPLATE_CONTEXT_PROCESSORS = TEMPLATE_CONTEXT_PROCESSORS + (
"wieskamp.verkoop.context_processors.latest_t
I think this may help
http://www.magpiebrain.com/2005/08/21/formatting-dates-with-django/
try using strftime and formatting from there.
On Mar 8, 3:16 pm, "het.oosten" wrote:
> I forgot to mention that my desired output of the date is:
> 2010-02-22 20:46:03
>
> On 8 mrt, 22:13, "het.oosten" wr
I forgot to mention that my desired output of the date is:
2010-02-22 20:46:03
On 8 mrt, 22:13, "het.oosten" wrote:
> I am getting somewhere now:
>
> import datetime
> import time
> import twitter
>
> tweet = twitter.Api().GetUserTimeline('username', count=3)
> for s in tweet:
> s.date =
I am getting somewhere now:
import datetime
import time
import twitter
tweet = twitter.Api().GetUserTimeline('username', count=3)
for s in tweet:
s.date = datetime.datetime(*(time.strptime( s.created_at,"%a
%b %d %H:%M:%S + %Y" )[0:6]))
print [x.text for x in tweet]
print [y.date for
Thank you for the reply. When i add the [0] to tweet, the date
conversion is only applied to the last tweet
On 7 mrt, 23:24, Daniel Roseman wrote:
> On Mar 7, 9:57 pm, "het.oosten" wrote:
>
>
>
> > I am almost done implementing tweets on my site using a tutorial which
> > a found
> > here:h
On Mar 7, 9:57 pm, "het.oosten" wrote:
> I am almost done implementing tweets on my site using a tutorial which
> a found
> here:http://www.omh.cc/blog/2008/aug/4/adding-your-twitter-status-django-s...
>
> The problem is that i want to modify the date output when i retrieve
> multiple tweets. The
I am almost done implementing tweets on my site using a tutorial which
a found here:
http://www.omh.cc/blog/2008/aug/4/adding-your-twitter-status-django-site/
The problem is that i want to modify the date output when i retrieve
multiple tweets. The example above is written for retrieving only one
7 matches
Mail list logo