8000 GitHub - rprabhat/date-calculator: Simple date calculator
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rprabhat/date-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

date-calculator

simple calculator to compute number of days between given dates.

Implementation

All date components ( year , month ) are modelled as ADT ( case classes ). ADT models contraints like february has 29 days in leap year.

Date difference is calculated using flatmap over range of year and month.

  • sbt compile
  • sbt test
  • sbt "run-main DateCalculator "

About

Simple date calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0