Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 809 Bytes

readme.md

File metadata and controls

15 lines (11 loc) · 809 Bytes

Date Class

This is an exercise of Modular Programming Course from BS Software Engineering at Pontifical Catholic University of Minas Gerais

Requirements of the exercise

  • Without using any date and time tools from the language you choose, model and implement a class that allow the user to create and perform date operations.
  • Your class should only accept dates starting for year 1900.
  • It should be possible to add or sub days on an existing date to generate a new date.
  • It should be possible to calculate the difference, in days, between two dates.
  • It should be possible to verify, between two dates, which is the most recent.
  • The default constructor should create an instance having +1 day based on the last created instance.

The Ruby version used in this project is: 2.6.6p146