Answer by Beat Bolli for Convert string from feedparser to datetime
You should use the parsed forms of the date fields: feed.updated_parsed contains a struct_time like the one returned by time.gmtime().
View ArticleConvert string from feedparser to datetime
I'd like to convert the string obtained as follows into datetime:d = feedparser.parse(xmlUrl)t = datetime.strptime(d.feed.updated, "%Y-%m-%dT%H:%M:%SZ")note the T and Z letters in the mask. They can be...
View Article
More Pages to Explore .....