Document cal-period extended behavior when handling mixture of cal-day and cal-month periods.

This commit is contained in:
Dominik Pantůček 2023-05-22 20:35:38 +02:00
parent b4736c25eb
commit efa0050669

View file

@ -214,11 +214,13 @@ end-month)```.
(cal-month-in-period? p [m (*current-month*)])
* ```p``` - a periods
* ```m``` - a valid month - defaults to ```(*current-month*)```
* ```p``` - a period structure
* ```m``` - a valid month or day - defaults to ```(*current-month*)```
Returns ```#t``` if given month ```m``` lies within the period
```p```.
```p```. The period can be cal-day or cal-month period and is
converted to appropriate cal-month period before checking. If ```m```
is a cal-day, it is converted to cal-month before testing.
(cal-month-in-periods? ps [m (*current-month*)])