DayFinder is a ruby gem. It is used to find the weekday of a given date.
DayFinder.find(day,month,year)
DayFinder.findAll(month,year,weekday)require 'DayFinder'
day=DayFinder.find 15,8,1947
puts day
#output
# Fridayrequire 'DayFinder'
days=DayFinder.findAll 11,2021,"sunday"
print days
#output
# [7, 14, 21, 28]gem 'DayFinder'And then execute:
$ bundle install
Or install it yourself as:
$ gem install DayFinder
Bug reports and pull requests are welcome on GitHub at https://github.com/freakflames29/DayFinder. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the DayFinder project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.