Commit graph

1 commit

Author SHA1 Message Date
Sergio Crisostomo
c91c30ccbb Date utils improvements and specs
Date utility functions `prevMonth` and `nextMonth` change the source
date when using `src.set[Date|Month|FullYear]()`. This change creates a
copy of the date at entrance of function so we have a pure function.

Made some code refactor and added specs for these functions.
2017-08-24 08:21:50 +02:00