Class: TimeWithZone (ActiveSupport)

Overview
Module Structure
Class Hierarchy
Instance Attributes
TimeWithZone#time_zone [R]
Instance Methods
TimeWithZone#initialize / 4
TimeWithZone#time
TimeWithZone#utc
TimeWithZone#period
TimeWithZone#in_time_zone / 1
TimeWithZone#localtime
TimeWithZone#dst?
TimeWithZone#utc?
TimeWithZone#utc_offset
TimeWithZone#formatted_offset / 2
TimeWithZone#zone
TimeWithZone#inspect
TimeWithZone#xmlschema / 1
TimeWithZone#as_json / 1
TimeWithZone#to_yaml / 1
TimeWithZone#httpdate
TimeWithZone#rfc2822
TimeWithZone#to_s / 1
TimeWithZone#strftime / 1
TimeWithZone#<=> / 1
TimeWithZone#between? / 2
TimeWithZone#past?
TimeWithZone#today?
TimeWithZone#future?
TimeWithZone#eql? / 1
TimeWithZone#+ / 1
TimeWithZone#- / 1
TimeWithZone#since / 1
TimeWithZone#ago / 1
TimeWithZone#advance / 1
TimeWithZone#usec
TimeWithZone#to_a
TimeWithZone#to_f
TimeWithZone#to_i
TimeWithZone#to_time
TimeWithZone#to_datetime
TimeWithZone#acts_like_time?
TimeWithZone#is_a? / 1
TimeWithZone#freeze
TimeWithZone#marshal_dump
TimeWithZone#marshal_load / 1
TimeWithZone#respond_to? / 2
TimeWithZone#method_missing / 3
TimeWithZone#get_period_and_ensure_valid_local_time
TimeWithZone#transfer_time_values_to_utc_constructor / 1
TimeWithZone#duration_of_variable_length? / 1
is a submodule of
module: ActiveSupport   
includes
  Comparable ( Builtin-Module )
inherits from
  Object ( Builtin-Module )
has properties
attribute: time_zone [R]   
method: initialize / 4   
method: time   
method: utc   
method: period   
method: in_time_zone / 1   
method: localtime   
method: dst?   
method: utc?   
method: utc_offset   
method: formatted_offset / 2   
method: zone   
method: inspect   
method: xmlschema / 1   
method: as_json / 1   
method: to_yaml / 1   
method: httpdate   
method: rfc2822   
method: to_s / 1   
method: strftime / 1   
method: <=> / 1   
method: between? / 2   
method: past?   
method: today?   
method: future?   
method: eql? / 1   
method: + / 1   
method: - / 1   
method: since / 1   
method: ago / 1   
method: advance / 1   
method: usec   
method: to_a   
method: to_f   
method: to_i   
method: to_time   
method: to_datetime   
method: acts_like_time?   
method: is_a? / 1   
method: freeze   
method: marshal_dump   
method: marshal_load / 1   
method: respond_to? / 2   
method: method_missing / 3   
method: get_period_and_ensure_valid_local_time   
method: transfer_time_values_to_utc_constructor / 1   
method: duration_of_variable_length? / 1   
is defined at
#33 in active_support/time_with_zone.rb  

Overview

Module Structure

  module: <Toplevel Module>
  module: <Built-in Module>
module: Comparable     
class: Object     
  module: ActiveSupport
class: TimeWithZone     

Class Hierarchy

Object ( Builtin-Module )
includes
  InstanceExecMethods ( Unknown-Module )
has properties
method: duplicable?   
method: ` / 1   
method: blank?   
method: present?   
method: presence   
method: to_param   
method: to_query / 1   
method: remove_subclasses_of / 1   
method: subclasses_of (1/2) / 1   
method: subclasses_of (2/E) / 1   
method: extended_by   
method: extend_with_included_modules_from / 1   
method: instance_exec / 2   
method: instance_variable_defined? / 1   
method: instance_values   
method: instance_variable_names   
method: copy_instance_variables_from / 2   
method: metaclass   
method: returning / 1   
method: tap   
method: with_options / 1   
method: acts_like? / 1   
method: singleton_class   
method: class_eval / 2   
method: html_safe?   
method: try / 3   
method: to_json / 1   
method: as_json / 1   
class method: method_added / 1   
class method: find_hidden_method / 1   
TimeWithZone ( ActiveSupport )
includes
  Comparable ( Builtin-Module )
has properties
attribute: time_zone [R]   
method: initialize / 4   
method: time   
method: utc   
method: period   
method: in_time_zone / 1   
method: localtime   
method: dst?   
method: utc?   
method: utc_offset   
method: formatted_offset / 2   
method: zone   
method: inspect   
method: xmlschema / 1   
method: as_json / 1   
method: to_yaml / 1   
method: httpdate   
method: rfc2822   
method: to_s / 1   
method: strftime / 1   
method: <=> / 1   
method: between? / 2   
method: past?   
method: today?   
method: future?   
method: eql? / 1   
method: + / 1   
method: - / 1   
method: since / 1   
method: ago / 1   
method: advance / 1   
method: usec   
method: to_a   
method: to_f   
method: to_i   
method: to_time   
method: to_datetime   
method: acts_like_time?   
method: is_a? / 1   
method: freeze   
method: marshal_dump   
method: marshal_load / 1   
method: respond_to? / 2   
method: method_missing / 3   
method: get_period_and_ensure_valid_local_time   
method: transfer_time_values_to_utc_constructor / 1   
method: duration_of_variable_length? / 1   

Instance Attributes

TimeWithZone#time_zone [R]

#35 in active_support/time_with_zone.rb

Instance Methods

TimeWithZone#initialize / 4

#37 in active_support/time_with_zone.rb

initialize ( utc_time ,
  time_zone ,
  local_time = nil ,
  period = nil )

TimeWithZone#time

#43 in active_support/time_with_zone.rb

time

TimeWithZone#utc

#48 in active_support/time_with_zone.rb

utc

TimeWithZone#period

#57 in active_support/time_with_zone.rb

period

TimeWithZone#in_time_zone / 1

#62 in active_support/time_with_zone.rb

in_time_zone ( new_zone = ::Time.zone )

TimeWithZone#localtime

#68 in active_support/time_with_zone.rb

localtime

TimeWithZone#dst?

#73 in active_support/time_with_zone.rb

dst?

TimeWithZone#utc?

#78 in active_support/time_with_zone.rb

utc?

TimeWithZone#utc_offset

#83 in active_support/time_with_zone.rb

utc_offset

TimeWithZone#formatted_offset / 2

#89 in active_support/time_with_zone.rb

formatted_offset ( colon = true ,
  alternate_utc_string = nil )

TimeWithZone#zone

#94 in active_support/time_with_zone.rb

zone

TimeWithZone#inspect

#98 in active_support/time_with_zone.rb

inspect

TimeWithZone#xmlschema / 1

#102 in active_support/time_with_zone.rb

xmlschema ( fraction_digits = 0 )

TimeWithZone#as_json / 1

#124 in active_support/time_with_zone.rb

as_json ( options = nil )

TimeWithZone#to_yaml / 1

#132 in active_support/time_with_zone.rb

to_yaml ( options = {} )

TimeWithZone#httpdate

#140 in active_support/time_with_zone.rb

httpdate

TimeWithZone#rfc2822

#144 in active_support/time_with_zone.rb

rfc2822

TimeWithZone#to_s / 1

#151 in active_support/time_with_zone.rb

to_s ( format = :default )

TimeWithZone#strftime / 1

#163 in active_support/time_with_zone.rb

strftime ( format )

TimeWithZone#<=> / 1

#169 in active_support/time_with_zone.rb

<=> ( other )

TimeWithZone#between? / 2

#173 in active_support/time_with_zone.rb

between? ( min ,
  max )

TimeWithZone#past?

#177 in active_support/time_with_zone.rb

past?

TimeWithZone#today?

#181 in active_support/time_with_zone.rb

today?

TimeWithZone#future?

#185 in active_support/time_with_zone.rb

future?

TimeWithZone#eql? / 1

#189 in active_support/time_with_zone.rb

eql? ( other )

TimeWithZone#+ / 1

#193 in active_support/time_with_zone.rb

+ ( other )

TimeWithZone#- / 1

#204 in active_support/time_with_zone.rb

- ( other )

TimeWithZone#since / 1

#217 in active_support/time_with_zone.rb

since ( other )

TimeWithZone#ago / 1

#227 in active_support/time_with_zone.rb

ago ( other )

TimeWithZone#advance / 1

#231 in active_support/time_with_zone.rb

advance ( options )

TimeWithZone#usec

#249 in active_support/time_with_zone.rb

usec

TimeWithZone#to_a

#253 in active_support/time_with_zone.rb

to_a

TimeWithZone#to_f

#257 in active_support/time_with_zone.rb

to_f

TimeWithZone#to_i

#261 in active_support/time_with_zone.rb

to_i

TimeWithZone#to_time

#268 in active_support/time_with_zone.rb

to_time

TimeWithZone#to_datetime

#272 in active_support/time_with_zone.rb

to_datetime

TimeWithZone#acts_like_time?

#277 in active_support/time_with_zone.rb

acts_like_time?

TimeWithZone#is_a? / 1

#282 in active_support/time_with_zone.rb

is_a? ( klass )

TimeWithZone#freeze

#287 in active_support/time_with_zone.rb

freeze

TimeWithZone#marshal_dump

#292 in active_support/time_with_zone.rb

marshal_dump

TimeWithZone#marshal_load / 1

#296 in active_support/time_with_zone.rb

marshal_load ( variables )

TimeWithZone#respond_to? / 2

#301 in active_support/time_with_zone.rb

respond_to? ( sym ,
  include_priv = false )

TimeWithZone#method_missing / 3

#308 in active_support/time_with_zone.rb

method_missing ( sym ,
  *args ,
  &block )

TimeWithZone#get_period_and_ensure_valid_local_time

#314 in active_support/time_with_zone.rb

get_period_and_ensure_valid_local_time

TimeWithZone#transfer_time_values_to_utc_constructor / 1

#327 in active_support/time_with_zone.rb

transfer_time_values_to_utc_constructor ( time )

TimeWithZone#duration_of_variable_length? / 1

#331 in active_support/time_with_zone.rb

duration_of_variable_length? ( obj )