mirror of
https://github.com/jimeh/time_ext.git
synced 2026-02-19 05:16:40 +00:00
like #until and #from. Except #of_the makes the
iteration walk through each unit of time passed to
the #each / #map method, from the beginning till
end of unit passed to #of_the.
Example:
Time.now.each_hour.of_the(:month) { |t puts t }
#=> iterates over each over of the whole current month