Created
October 1, 2010 21:00
-
-
Save btbytes/606853 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| 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