Parse an xsd:date or xsd:datetime

I’d think there would be something built-in or in a commonly used
library to parse an xsd:date or xsd:datetime into a ruby Time. Those
types defined in XML Schema. But I’m not finding it. Any hints?

On Wed, Oct 20, 2010 at 1:03 AM, Jonathan R. [email protected]
wrote:

I’d think there would be something built-in or in a commonly used
library to parse an xsd:date or xsd:datetime into a ruby Time. Those
types defined in XML Schema. But I’m not finding it. Any hints?

It is built into the Time and Date classes. See
http://ruby-doc.org/core/classes/Time.html#M000308, and do read
http://ruby-doc.org/core/classes/Time.html#M000305 to know what to
expect.

Regards,
Ammar

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs