Class: Time

Inherits:
Object show all
Defined in:
lib/extlib/time.rb

Instance Method Summary collapse

Instance Method Details

#to_jsonString

Returns ISO 8601 compatible rendering of the Time object’s properties.

Examples:

Time.now.to_json # => "\"2008-03-28T17:54:20-05:00\""

Returns:

  • (String)

    ISO 8601 compatible rendering of the Time object’s properties.



8
9
10
# File 'lib/extlib/time.rb', line 8

def to_json
  self.xmlschema.to_json
end