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