ehn-dcc-development / eu-dcc-business-rules

eHealth collaboration space business rules
Apache License 2.0
30 stars 16 forks source link

`plusTime` with year and months #105

Closed vanlooverenkoen closed 2 years ago

vanlooverenkoen commented 2 years ago

We need to validate that a date is 18 years + 3months ago. As far as I can see you can not do that with plusTime or am I missing something?

vanlooverenkoen commented 2 years ago

Never mind, it is to early for me to think 😂 we will just 219 months

dslmeinte commented 2 years ago

Hi @vanlooverenkoen , You're right: you can use only one time unit per plusTime operation, and you can't compose plusTime operations. I don't mind not having to extend CertLogic, provided adding 219 months works for your use case :)

I'm curious: is your use case DCC-related?

vanlooverenkoen commented 2 years ago

Yes indeed