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.5.14 lib/hiccup/core_ext/date.rb
hiccup-0.5.13 lib/hiccup/core_ext/date.rb
hiccup-0.5.12 lib/hiccup/core_ext/date.rb
hiccup-0.5.11 lib/hiccup/core_ext/date.rb
hiccup-0.5.10 lib/hiccup/core_ext/date.rb
hiccup-0.5.9 lib/hiccup/core_ext/date.rb
hiccup-0.5.8 lib/hiccup/core_ext/date.rb
hiccup-0.5.7 lib/hiccup/core_ext/date.rb
hiccup-0.5.6 lib/hiccup/core_ext/date.rb
hiccup-0.5.5 lib/hiccup/core_ext/date.rb
hiccup-0.5.4 lib/hiccup/core_ext/date.rb
hiccup-0.5.3 lib/hiccup/core_ext/date.rb
hiccup-0.5.2 lib/hiccup/core_ext/date.rb
hiccup-0.5.1 lib/hiccup/core_ext/date.rb
hiccup-0.5.0 lib/hiccup/core_ext/date.rb
hiccup-0.4.5 lib/hiccup/core_ext/date.rb
hiccup-0.4.4 lib/hiccup/core_ext/date.rb
hiccup-0.4.3 lib/hiccup/core_ext/date.rb
hiccup-0.4.2 lib/hiccup/core_ext/date.rb
hiccup-0.4.1 lib/hiccup/core_ext/date.rb