Results for: "module_function"

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

No documentation available

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.

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

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

Return the number of seconds the specified time zone differs from UTC.

Numeric time zones that include minutes, such as -10:00 or +1330 will work, as will simpler hour-only time zones like -10 or +13.

Textual time zones listed in ZoneOffset are also supported.

If the time zone does not match any of the above, zone_offset will check if the local time zone (both with and without potential Daylight Saving Time changes being in effect) matches zone. Specifying a value for year will change the year used to find the local time zone.

If zone_offset is unable to determine the offset, nil will be returned.

require 'time'

Time.zone_offset("EST") #=> -18000

You must require ‘time’ to use this method.

No documentation available
No documentation available
No documentation available

Deserializes JSON string by constructing new Struct object with values v serialized by to_json.

Search took: 6ms  ·  Total Results: 3881