Tim Bray wrote:
On Feb 4, 2005, at 8:37 AM, Robert Sayre wrote:
I agree. I was just writing a protocol implementation in Ruby On Rails (CRUDs very fast, btw). When I got to the part on date formats, I used xsd:dateTime code that was already done, figuring that's what everyone else will do.
For what it's worth, in Perl and C I use Posix strftime with this as the argument:
"%Y-%m-%dT%H:%M:%S-08:00"
I was parsing, but one of the bad things about Ruby On Rails is that you don't need to learn Ruby to use it. I have three working apps done and I think I've written like 150 lines of Ruby in my life. So, I just tried the standard library's Date.parse() function, which applies all sorts of grubby heuristics. Worked fine. That's probably similar to what most people in scripting land will do, so I guess the difference between XSD and RFC 3339 isn't a big deal from the that point of view.
Robert Sayre
