noon

noon() Instance Public methods Alias for: middle_of_day

seconds_since_midnight

seconds_since_midnight() Instance Public methods Seconds since midnight: Time.now.seconds_since_midnight

seconds_until_end_of_day

seconds_until_end_of_day() Instance Public methods Returns the number of seconds until 23:59:59. Time.new(2012, 8, 29, 0, 0, 0).seconds_until_end_of_day # => 86399 Time.new(2012, 8, 29, 12, 34, 56).seconds_until_end_of_day # => 41103 Time.new(2012, 8, 29, 23, 59, 59).seconds_until_end_of_day # => 0

since

since(seconds) Instance Public methods Returns a new Time representing the time a number of seconds since the instance time in

to_default_s

to_default_s(format = :default) Instance Public methods Alias for: to_s

to_formatted_s

to_formatted_s(format = :default) Instance Public methods Converts to a formatted string. See DATE_FORMATS for builtin formats. This method is aliased to to_s. time = Time.now # => Thu Jan 18 06:10:17 CST 2007 time.to_formatted_s(:time) # => "06:10" time.to_s(:time) # => "06:10" time.to_formatted_s(:db) # => "2007-01-18 06:10:17" time.to_formatted_s(:number) # => "20070118061017" time.to_formatted_s(:shor

to_s

to_s(format = :default) Instance Public methods Also aliased as: to_default_s

blank?

blank?() Instance Public methods true is not blank: true.blank? # => false @return [false]

duplicable?

duplicable?() Instance Public methods true is not duplicable: true.duplicable? # => false true.dup # => TypeError: can't dup TrueClass

to_param

to_param() Instance Public methods Returns self.