Restrict proposals for due date

Avoid dates too far in the future.
This commit is contained in:
Eike Kettner
2020-06-26 01:27:11 +02:00
parent 91da3b149e
commit d79ae6233a
6 changed files with 53 additions and 11 deletions

View File

@ -53,6 +53,9 @@ object Duration {
def days(n: Long): Duration =
apply(JDur.ofDays(n))
def years(n: Long): Duration =
days(n * 365)
def nanos(n: Long): Duration =
Duration(n)