aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/release.rb
diff options
context:
space:
mode:
authorGeorge Claghorn <george.claghorn@gmail.com>2015-01-04 20:01:26 -0500
committerGeorge Claghorn <george.claghorn@gmail.com>2015-01-06 05:42:37 -0500
commitadf5fc3b3c9b5774c0ad621ac3503d236b8ddd9c (patch)
tree2003d3b2f19a2404d1b03567b6a18bfb8b967d00 /tasks/release.rb
parentde4f40826e3b979735e4f3287725f1a7a3820818 (diff)
downloadrails-adf5fc3b3c9b5774c0ad621ac3503d236b8ddd9c.tar.gz
rails-adf5fc3b3c9b5774c0ad621ac3503d236b8ddd9c.tar.bz2
rails-adf5fc3b3c9b5774c0ad621ac3503d236b8ddd9c.zip
Add #on_weekend?, #next_weekday, and #prev_weekday methods to Date, Time, and DateTime
`#on_weekend?` returns true if the receiving date/time falls on a Saturday or Sunday. `#next_weekday` returns a new date/time representing the next day that does not fall on a Saturday or Sunday. `#prev_weekday` returns a new date/time representing the previous day that does not fall on a Saturday or Sunday.
Diffstat (limited to 'tasks/release.rb')
0 files changed, 0 insertions, 0 deletions