Jump To …

time_ext.rb

require 'rubygems'
require 'active_support'
require 'time_ext/version'

Calculation methods such as #floor, #ceil, #round, #prev_week and many more, adding on top of the defaults present in ActiveSupport.

require 'time_ext/calculations'

Iteration methods allowing the use of #each, #map_each and more on Time objects similar to how you loop over an Array of items.

require 'time_ext/iterations'

Core extention of Time class to load in Calculation and Iteration modules.

require 'time_ext/core_ext/time'

Core extention of Numeric class to set a couple of required aliases.

require 'time_ext/core_ext/numeric'