Project

DayFinder

0.0
No commit activity in last 3 years
No release in over 3 years
DayFinder gem will return the weekday of a given date.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

DayFinder Gem Version

DayFinder is a ruby gem. It is used to find the weekday of a given date.

Syntax

DayFinder.find(day,month,year)
DayFinder.findAll(month,year,weekday)

Example

require 'DayFinder'
day=DayFinder.find 15,8,1947
puts day
#output
# Friday

Find all dates

require 'DayFinder'
days=DayFinder.findAll 11,2021,"sunday"
print days
#output
# [7, 14, 21, 28]

Installation

gem 'DayFinder'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install DayFinder

Contributing

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.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the DayFinder project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.