| Class | DateTime |
| In: |
lib/json/add/core.rb
|
| Parent: | Object |
# File lib/json/add/core.rb, line 41 def self.json_create(object) args = object.values_at('y', 'm', 'd', 'H', 'M', 'S') of_a, of_b = object['of'].split('/') args << Rational(of_a.to_i, of_b.to_i) args << object['sg'] civil(*args) end