Redirected from User Guides/myXML/5: OCL Rules/Available methods for OCL base types/.allowedDaysInPast().allowedDaysInPast()
Description of the method
|Description:||.allowedDaysInPast() method checks if the given date is within the days from the system date to a past date. The past date is x days into the past from the system date and the x is given as a parameter.|
|Available for:||ISODateTime or ISODate|
|Description:||The example rule checks if the date of <Dt> is within 3 days from the system date.|
The XML snippet below would pass this check, if assumed that the system date is 25.05.2018.
The other snippet below however would not pass this check.