Method: Time.json_create

Defined in:
lib/property/core_ext/time.rb

.json_create(serialized) ⇒ Object



10
11
12
13
14
# File 'lib/property/core_ext/time.rb', line 10

def self.json_create(serialized)
  if serialized['data'] =~ JSON_REGEXP
    Time.utc $1.to_i, $2.to_i, $3.to_i, $4.to_i, $5.to_i, $6.to_i
  end
end