public Method

Time.to_json(options = nil)

There's no documentation for this item.

Source Code

# File active_support/json/encoders/time.rb, line 2
def to_json(options = nil) #:nodoc:
  %("#{strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)}")
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.