Results for: "OptionParser"

Import a JSON Marshalled object.

method used for JSON marshalling support.

Marshal the object to JSON.

method used for JSON marshalling support.

return the JSON value

Deserializes JSON string by converting numerator value n, denominator value d, to a Rational object.

Returns a hash, that will be turned into a JSON object and represent this object.

Stores class name (Rational) along with numerator value n and denominator value d as JSON string

Returns true if the given week date is valid, and false if not.

Date.valid_commercial?(2001,5,6)  #=> true
Date.valid_commercial?(2001,5,8)  #=> false

See also ::jd and ::commercial.

Duplicates self and resets its day of calendar reform.

d = Date.new(1582,10,15)
d.new_start(Date::JULIAN)         #=> #<Date: 1582-10-05 ...>

This method is equivalent to d >> n.

See Date#>> for examples.

This method is equivalent to d << n.

See Date#<< for examples.

This method is equivalent to d >> (n * 12).

Date.new(2001,2,3).next_year      #=> #<Date: 2002-02-03 ...>
Date.new(2008,2,29).next_year     #=> #<Date: 2009-02-28 ...>
Date.new(2008,2,29).next_year(4)  #=> #<Date: 2012-02-29 ...>

See also Date#>>.

This method is equivalent to d << (n * 12).

Date.new(2001,2,3).prev_year      #=> #<Date: 2000-02-03 ...>
Date.new(2008,2,29).prev_year     #=> #<Date: 2007-02-28 ...>
Date.new(2008,2,29).prev_year(4)  #=> #<Date: 2004-02-29 ...>

See also Date#<<.

Returns a Time object which denotes self. If self is a julian date, convert it to a gregorian date before converting it to Time.

Returns a DateTime object which denotes self.

No documentation available

Deserializes JSON string by converting Julian year y, month m, day d and Day of Calendar Reform sg to Date.

Returns a hash, that will be turned into a JSON object and represent this object.

Stores class name (Date) with Julian year y, month m, day d and Day of Calendar Reform sg as JSON string

Duplicates self and resets its offset.

d = DateTime.new(2001,2,3,4,5,6,'-02:00')
                          #=> #<DateTime: 2001-02-03T04:05:06-02:00 ...>
d.new_offset('+09:00')    #=> #<DateTime: 2001-02-03T15:05:06+09:00 ...>

Returns a Time object which denotes self.

Returns self.

Deserializes JSON string by converting year y, month m, day d, hour H, minute M, second S, offset of and Day of Calendar Reform sg to DateTime.

Returns a hash, that will be turned into a JSON object and represent this object.

Stores class name (DateTime) with Julian year y, month m, day d, hour H, minute M, second S, offset of and Day of Calendar Reform sg as JSON string

Returns self.

Search took: 4ms  ·  Total Results: 4629