![]() |
Home Email me SEARCH |
Monthly Archive
Blogroll
Adeleida
Alan Bell
Alan Lepofsky
Andy Donaldson
Ben Langhinrichs
Ben Poole
Bill Buchan
BlogSphere
Brian Benz
Bruce Elgort
Captain Oblivious
Carl Tyler
Chris Byrne
Chris Coates
Chris Linfoot
Chris Miller
Chris Toohey
Chris Whisonant
Christian Brandlehner
CodeStore
Craig Schumann
Curt Stone
Damien Katz
Declan Lynch
Devin Olson
DomBlog.de
domlike.net
Duffbert
Ed Brill
Fabian Nirman
Ferdy Christant
Gayle Elgort
Grant Bingham
Gregg Eldred
Hassan Voyeau
Heini Schwammerl
Ian Irving
Jack Dausman
Jens-Christian Fischer
Jerry Carter
Johan Känngård
John Mill
John Roling
John Vaughan
Just Enough Governance
Justin Knol
Kathy Sierra
Keith Strickland
Ken Yee
Kevin Pettitt
Kurt Higley
Lance Spellman
Laurette Rynne
Mac Guidera
Matt and Jess
Matt White
Mikkel Heisterberg
Mrs Elsmore
Nathan Freeman
News4Notes
nsftools
OpenNTF Blog
Paul Mooney
PhotoTechno Reflections
Ray Bilyk
Richard Schwartz
Richard Spense
Rob Novak
Rob Wunderlich
Rocky Oliver
Roy Holder
Scott Good
Sean Burgess
Simon Peek
Squirrelly Notes
Stan Rogers
Stephan H. Wissel
Steve Castledine
Susan Bulloch
Taking Notes
Tim Rynne
Tim Tripcony
Tom's Rant
Turtle
Vince Schuurman
Volker Weber
Warren Elsmore
Alan Bell
Alan Lepofsky
Andy Donaldson
Ben Langhinrichs
Ben Poole
Bill Buchan
BlogSphere
Brian Benz
Bruce Elgort
Captain Oblivious
Carl Tyler
Chris Byrne
Chris Coates
Chris Linfoot
Chris Miller
Chris Toohey
Chris Whisonant
Christian Brandlehner
CodeStore
Craig Schumann
Curt Stone
Damien Katz
Declan Lynch
Devin Olson
DomBlog.de
domlike.net
Duffbert
Ed Brill
Fabian Nirman
Ferdy Christant
Gayle Elgort
Grant Bingham
Gregg Eldred
Hassan Voyeau
Heini Schwammerl
Ian Irving
Jack Dausman
Jens-Christian Fischer
Jerry Carter
Johan Känngård
John Mill
John Roling
John Vaughan
Just Enough Governance
Justin Knol
Kathy Sierra
Keith Strickland
Ken Yee
Kevin Pettitt
Kurt Higley
Lance Spellman
Laurette Rynne
Mac Guidera
Matt and Jess
Matt White
Mikkel Heisterberg
Mrs Elsmore
Nathan Freeman
News4Notes
nsftools
OpenNTF Blog
Paul Mooney
PhotoTechno Reflections
Ray Bilyk
Richard Schwartz
Richard Spense
Rob Novak
Rob Wunderlich
Rocky Oliver
Roy Holder
Scott Good
Sean Burgess
Simon Peek
Squirrelly Notes
Stan Rogers
Stephan H. Wissel
Steve Castledine
Susan Bulloch
Taking Notes
Tim Rynne
Tim Tripcony
Tom's Rant
Turtle
Vince Schuurman
Volker Weber
Warren Elsmore
One of the main problems encountered with RSS feeds is dates that do not conform to the ISO 8601 specification. Here is some very simple LotusScript to convert a date to this format:
Dim dtLocal As NotesDateTime
Dim dtGMT As NotesDateTime
Dim strRSSDate As String
Set dtLocal = New NotesDateTime( Now )
Set dtGMT = New NotesDateTime( Left$(dtLocal.GMTTime, 22) )
strRSSDate = Format$(dtGMT.LSLocalTime, "yyyy-mm-ddThh:nn:ssZ")
Here's an explanation:
- The NotesDateTime value dtLocal is set to some valid date/time. For purposes of illustration here, I'm setting it to the current time Now.
- Then I cheat a little. I get the left-most 22 characters of the GMTTime property. The GMTTime property returns a string representing the date/time converted to Greenwich Mean Time (more and more frequently now being referred to as "Universal Time" - here are details about GMT and Universal Time). For example, at the time of this writing, the dtLocal field was set to a NotesDateTime object with a value of "01/02/2004 05:56:46 PM PST". The GMTTime property of dtLocal was "01/03/2004 01:56:46 AM GMT", so dtGMT received a value of "01/03/2004 01:56:46 AM" (the left-most 22 characters of the GMTTime property.
- By then getting the LSLocalTime value for that 22-character string, I could pass this new dateTime to the string Format$ method with a mask that results in a text representation of a date, compliant with the ISO 8601 specification. In this case, the final date respresentation is "2004-01-03T01:56:46Z". The "T" in the string designates where the time component is starting, and the "Z" indicates that we are representing this time value as GMT, so we therefore do not need to include a value to indicate a time zone offset.
My plan is to also write routines for this date conversion using JavaScript, Java, and maybe @Formula.
Comments :











