xmlschema 2

xmlschema(fraction_digits=0) Instance Public methods 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. You must require 'time' to use this method. iso8601

all_week

all_week(start_day = Date.beginning_of_week) Instance Public methods Returns a Range representing the whole week of the current date/time. Week starts on start_day, default is Date.week_start or config.week_start when set.

close_read

ios.close_read â nil Instance Public methods Closes the read end of a duplex I/O stream (i.e., one that contains both a read and a write stream, such as a pipe). Will raise an IOError if the stream is not duplexed. f = IO.popen("/bin/sh","r+") f.close_read f.readlines produces: prog.rb:3:in `readlines': not opened for reading (IOError) from prog.rb:3

days_since

days_since(days) Instance Public methods Returns a new date/time the specified number of days in the future.

[]

[](key) Instance Public methods

set_no_event_wait 2

set_no_event_wait(*args) Instance Public methods

element_lindex

element_lindex(elem_idxs, idx) Instance Public methods Also aliased as: element_lget

strongly_connected_components

strongly_connected_components() Instance Public methods Returns strongly connected components as an array of arrays of nodes. The array is sorted from children to parents. Each elements of the array represents a strongly connected component.

test_inheritance_new_with_base_class

test_inheritance_new_with_base_class() Instance Public methods

inspect

time.inspect â string Instance Public methods Returns a string representing time. Equivalent to calling strftime with the appropriate format string. t = Time.now t.to_s => "2012-11-10 18:16:12 +0100" t.strftime "%Y-%m-%d %H:%M:%S %z" => "2012-11-10 18:16:12 +0100" t.utc.to_s => "2012-11-10 17:16:12 UTC" t.strftime "%Y-%m-%d %H:%M:%S UTC" => "2012-11-10 17:16:12 UTC"