Class | DateTime |
In: |
lib/json/add/core.rb
|
Parent: | Object |
sg | -> | start |
# File lib/json/add/core.rb, line 63 63: def self.json_create(object) 64: args = object.values_at('y', 'm', 'd', 'H', 'M', 'S') 65: of_a, of_b = object['of'].split('/') 66: if of_b and of_b != '0' 67: args << Rational(of_a.to_i, of_b.to_i) 68: else 69: args << of_a 70: end 71: args << object['sg'] 72: civil(*args) 73: end