On Feb 4, 2005, at 8:37 AM, Robert Sayre wrote:

I know we're writing an IETF document, but I think there's going to be
a lot of off-the-shelf XML software that understands xsd:dateTimes and
I think it would be a lot better if we defined Date Constructs in
terms of W3C XML Schema Part 2 than RFC 3339.
I propose that we change the spec to do so.

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"

(the -08 bit because I'm in Pacific time, adjust as appropriate).
 -Tim



Reply via email to