Results for: "OptionParser"

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 the day of calendar reform.

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

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 ...>

This method is equivalent to d >> n

This method is equivalent to d << n

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

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

Returns a Time object which denotes self.

Returns a DateTime object which denotes self.

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

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 a copy of self as local mode.

Returns a DateTime object which denotes self.

Deserializes JSON string by converting time since epoch to Time

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

Stores class name (Time) with number of seconds since epoch and number of microseconds for Time as JSON string

No documentation available
No documentation available
Search took: 4ms  ·  Total Results: 4164