daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest May 16th, 2018 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require 'date'
  2. def print_workdays(d1, d2)
  3.         d1 +=1 while (d1.wday == 0 or d1.wday==6)
  4.         d1.step(d2, 1) do |date|
  5.             puts "#{Date::MONTHNAMES[date.mon]} #{date.day}" if date.wday != 0 and date.wday != 6
  6.         end
  7. end
RAW Paste Data
Top