Class: Time

Inherits:
Object show all
Defined in:
opal/stdlib/json.rb,
opal/stdlib/native.rb

Instance Method Summary collapse

Instance Method Details

#to_jsonObject



186
187
188
# File 'opal/stdlib/json.rb', line 186

def to_json
  strftime("%FT%T%z").to_json
end

#to_nObject



418
419
420
# File 'opal/stdlib/native.rb', line 418

def to_n
  self
end