This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

iso8601

        # Time.iso8601

(from ruby core)
---
    iso8601(time)

---

(This method is an alias for Time::xmlschema.)

Parses `time` as a dateTime defined by the XML Schema and converts it to
a Time object.  The format is a restricted version of the format defined
by ISO 8601.

ArgumentError is raised if `time` is not compliant with the format or if
the Time class cannot represent the specified time.

See #xmlschema for more information on this format.

    require 'time'

    Time.xmlschema("2011-10-05T22:26:12-04:00")
    #=> 2011-10-05 22:26:12-04:00

You must require 'time' to use this method.


(from ruby core)
---
    iso8601(fraction_digits=0)

---

(This method is an alias for Time#xmlschema.)

Returns a string which represents the time as a dateTime defined by XML
Schema:

    CCYY-MM-DDThh:mm:ssTZD
    CCYY-MM-DDThh:mm:ss.sssTZD

where TZD is Z or [+-]hh:mm.

If self is a UTC time, Z is used as TZD.  [+-]hh:mm is used otherwise.

`fractional_digits` specifies a number of digits to use for fractional
seconds.  Its default value is 0.

    require 'time'

    t = Time.now
    t.iso8601  # => "2011-10-05T22:26:12-04:00"

You must require 'time' to use this method.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.