RubyGems.org

shifty_week

0.1.1

Calculate dates based on a configurable first day of the week. If you want the first day of the week to be Wednesday and the current calendar Year-Month are 2009-10, DateTime#week_days will return an array of DateTime objects which when formatted with "%Y-%m-%d %a" look like ["2009-10-14 Wed", "2009-10-15 Thu", "2009-10-16 Fri", "2009-10-17 Sat", "2009-10-18 Sun", "2009-10-19 Mon", "2009-10-20 Tue"]

installgem install shifty_week
Authors

Scott Noel-Hemming

1,083 total downloads 567 for this version
Owners

256fe77e4bde06736b1ddf1bea5b0d66

Gemfile
gem "shifty_week", "~> 0.1.1"
Versions
  1. 0.1.1 November 8, 2009
  2. 0.1.0 October 19, 2009