pf » Parsing Atom Dates (ISO8601) in ColdFusion
February 24, 2005
Parsing Atom Dates (ISO8601) in ColdFusion
Need to parse the dates in an Atom feed? Atom feeds use ISO 8601 formatted dates, something like this; 1994-11-05T08:15:30-05:00 with a UTC offset, or like this: 1994-11-05T13:15:30Z in GMT. You can come across both formats in an Atom feed, the atom:modified element MUST have a timezone specified, while the atom:issued element MAY specify a timezone.
Before getting too far, I checked CFLib's date library, and sure enough I found a function called DateConvertISO8601 by David Satz. From my limited testing the function seams to work well for parsing Atom / ISO8601 dates.
Related Entries
- Foundeo's 2007 End of the Year Sale - December 21, 2007
- AJAX Tutorial with Prototype - December 13, 2005
- SoloSub is for button addicts - October 6, 2005
- The Proper Content Type for XML Feeds - June 13, 2005
- XPath Tool - July 28, 2004
Trackback Address: 247/91EE72600CDF63C99D5DB137F903E302
Comments
On 02/24/2005 at 12:58:45 PM MST Pete Freitag wrote:
1
After looking at the code I realize that this method does not handle all formats (if you don't specify seconds, it will fail, or if you specify fraction of a second it will fail).
I may end up writing my own
On 04/04/2006 at 7:23:14 PM MDT Jeff Lemmon wrote:
2
Hi Peter. Do you know of any custom CF tags that parse atom feeds? I have found a few for RSS 2.0 but have yet to find an atom parser. Thank you!
- CFSCRIPT Cheatsheet
- 3 New Image Effects for ColdFusion 8
- Googlebot to Submit Web Forms
- ColdFusion 8 Update 1 Fixes some Image Processing Quirks
- 10 Most Useful Image Functions in ColdFusion 8
- Speaking at NYC CFUG This Week
- Adobe AIR Tutorial for HTML / JavaScript Developers
- INFORMATION_SCHEMA Support in MySQL, PostgreSQL
Subscribe to my RSS Feed:
RSS
RSS
add to del.icio.us
Pete Freitag is a software engineer, and web developer located in










