Sha256: 9c02411c4c1b46c5f668b90c3d2f56657896d2c469a08a187b7e4f95ddf1cbc9

Contents?: true

Size: 397 Bytes

Versions: 21

Compression:

Stored size: 397 Bytes

Contents

module Hiccup
  module CoreExtensions
    module Date
      
      
      
      def get_nth_wday_of_month
        (day - 1) / 7 + 1
      end
      
      def get_nth_wday_string
        "#{get_nth_wday_of_month} #{::Date::DAYNAMES[wday]}"
      end
      
      
      
    end
  end
end

Date.send     :include, Hiccup::CoreExtensions::Date
DateTime.send :include, Hiccup::CoreExtensions::Date

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
hiccup-0.4.0 lib/hiccup/core_ext/date.rb