zone

zone() Class Public methods Returns the TimeZone for the current request, if this has been set (via ::zone=). If Time.zone has not been set for the current request, returns the TimeZone specified in config.time_zone.

zone=

zone=(time_zone) Class Public methods Sets Time.zone to a TimeZone object for the current request/thread. This method accepts any of the following: A Rails TimeZone object. An identifier for a Rails TimeZone object (e.g., âEastern Time (US & Canada)â, -5.hours). A TZInfo::Timezone object. An identifier for a TZInfo::Timezone object (e.g., âAmerica/New_Yorkâ). Here's an example of how you might set Time.zone on a per request basis and reset it when the request is done.

-

-(other) Instance Public methods Also aliased as: minus_without_duration, minus_without_coercion

<=>

<=>(other) Instance Public methods Also aliased as: compare_without_coercion

_dump

_dump(*args) Instance Public methods Also aliased as: _dump_without_zone

_dump_without_zone

_dump_without_zone(*args) Instance Public methods Alias for: _dump

acts_like_time?

acts_like_time?() Instance Public methods Duck-types as a Time-like class. See Object#acts_like?.

advance

advance(options) Instance Public methods Uses Date to provide precise Time calculations for years, months, and days according to the proleptic Gregorian calendar. The options parameter takes a hash with any of these keys: :years, :months, :weeks, :days, :hours, :minutes, :seconds.

ago

ago(seconds) Instance Public methods Returns a new Time representing the time a number of seconds ago, this is basically a wrapper around the Numeric extension

all_day

all_day() Instance Public methods Returns a Range representing the whole day of the current time.