Class: Time

Inherits:
Object show all
Includes:
ActiveSupport::CoreExtensions::Time::Behavior, ActiveSupport::CoreExtensions::Time::Calculations, ActiveSupport::CoreExtensions::Time::Conversions
Defined in:
lib/active_support/core_ext/time.rb,
lib/active_support/core_ext/time.rb,
lib/active_support/json/encoders/time.rb

Overview

:nodoc:

Constant Summary

Constants included from ActiveSupport::CoreExtensions::Time::Conversions

ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS

Instance Method Summary collapse

Methods included from ActiveSupport::CoreExtensions::Time::Conversions

included, #to_date, #to_datetime, #to_formatted_s, #to_time

Methods included from ActiveSupport::CoreExtensions::Time::Calculations

#advance, #ago, #beginning_of_day, #beginning_of_month, #beginning_of_quarter, #beginning_of_week, #beginning_of_year, #change, #end_of_day, #end_of_month, included, #last_month, #last_year, #minus_with_duration, #months_ago, #months_since, #next_month, #next_week, #next_year, #plus_with_duration, #seconds_since_midnight, #since, #tomorrow, #years_ago, #years_since, #yesterday

Methods included from ActiveSupport::CoreExtensions::Time::Behavior

#acts_like_time?

Instance Method Details

#to_json(options = nil) ⇒ Object

:nodoc:



2
3
4
# File 'lib/active_support/json/encoders/time.rb', line 2

def to_json(options = nil) #:nodoc:
  to_datetime.to_json(options)
end