| Class | DateTime |
| In: |
lib/json/add/core.rb
|
| Parent: | Object |
| sg | -> | start |
# File lib/json/add/core.rb, line 53
53: def self.json_create(object)
54: args = object.values_at('y', 'm', 'd', 'H', 'M', 'S')
55: of_a, of_b = object['of'].split('/')
56: if of_b and of_b != '0'
57: args << Rational(of_a.to_i, of_b.to_i)
58: else
59: args << of_a
60: end
61: args << object['sg']
62: civil(*args)
63: end