Skip to content

mlibrary/term_coder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Gem to convert year and semester to the term codes used at UofM

Installation

Nothing special. Add this line to your application's Gemfile:

gem 'term_coder'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install term_coder

Usage

To get termcode from year and semester:

      code = TermCoder.from_year_name(1999, "Winter")

To get year and semester (as a Hash) from term code:

      info = TermCoder.from_code(1220)

About

Convert Year and semester into UofM term codes

Resources

License

Stars

Watchers

Forks

Packages

No packages published