Home > shifty_week

shifty_week

Shifty_week is a project mainly written in Ruby, based on the MIT, MIT licenses found.

Calculate dates based on a configurable first day of the week.

= shifty_week

Description in ShiftyWeek[link:classes/ShiftyWeek.html]

== Quick Intro

n = DateTime.now n.week_day_start = 'Wednesday' n.week_days # => [2009-11-04T00:16:27-08:00, 2009-11-05T00:16:27-08:00, 2009-11-06T00:16:27-08:00, 2009-11-07T00:16:27-08:00, 2009-11-08T00:16:27-08:00, 2009-11-09T00:16:27-08:00, 2009-11-10T00:16:27-08:00]

== Installation

  1. Require the gem
  2. Require the libs:

    shifty_week shifty_week/time shifty_week/date

== Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

== Copyright

Copyright (c) 2009 Scott Noel-Hemming. See LICENSE for details.