Skip to content

Instantly share code, notes, and snippets.

@btbytes
Created October 1, 2010 21:00
Show Gist options
  • Select an option

  • Save btbytes/606853 to your computer and use it in GitHub Desktop.

Select an option

Save btbytes/606853 to your computer and use it in GitHub Desktop.
'''
feedp1.py
Date parsing with Feedparser
Pradeep Gowda
2010-09-30
'''
import feedparser
def pd(s):
print '%s -- %s ' % (s, feedparser._parse_date(s))
def main():
pd('2010/09/30 00:12:34')
pd('Thu, 23 Oct 2008 14:51:56 -0400')
pd('2005-02-02 09:09:09-05:00')
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment