This is a very simple date library using Flix
Flix is
- Functional First
- Runs on JVM
- Written in Scala
This library creates a Date in YYYYMMDD format. This library has these functions
- Creates a Date by accepting year, month and day and validating these fields.
- Can compare two dates
- Increment a date by number of days
- Count the number of days between two dates (Right now this is very inefficient, as we increment dates by 1 and check. Need to improve this)
You can test by downloading flix.jar and running - java -jar <path to flix.jar> test