method

as_json

v3.2.8 - Show latest stable - Class: Time
as_json(options = nil)
public

No documentation available.

# File activesupport/lib/active_support/json/encoding.rb, line 257
  def as_json(options = nil) #:nodoc:
    if ActiveSupport.use_standard_json_time_format
      xmlschema
    else
      %(#{strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)})
    end
  end