Package toon :: Module rss
[hide private]
[frames] | no frames]

Module rss

source code

Media RSS Feed Generation

Classes [hide private]
  Item
Generates a RSS item
  Channel
  RSSPage
Functions [hide private]
 
_format_date(dt)
Converts a datetime into an RFC 822 formatted date
source code
Variables [hide private]
  VERBOSE = True
  __package__ = 'toon'

Imports: os, glob, datetime, pprint, rend, IRequest


Function Details [hide private]

_format_date(dt)

source code 

Converts a datetime into an RFC 822 formatted date

Input date must be in GMT.

Source : PyRSS2Gen - A Python library for generating RSS 2.0 feeds.
:author: Andrew Dalke <dalke@dalkescientific.com>

Looks like:
  Sat, 07 Sep 2002 00:00:01 GMT
Can't use strftime because that's locale dependent

Isn't there a standard way to do this for Python?  The
rfc822 and email.Utils modules assume a timestamp.  The
following is based on the rfc822 module.