Finish month module documentation.

This commit is contained in:
Dominik Pantůček 2023-03-22 22:42:08 +01:00
parent acb1e8cd0a
commit dd6722fe13

View file

@ -172,9 +172,22 @@ after ```n``` in the calendar or they are ```equal?```.
Returns ```#t``` if both month values are valud and ```m``` comes
after ```n``` in the calendar.
month-diff
(month-diff f t)
month-add
* ```f``` - valid month (from)
* ```t``` - valid month (to)
Returns the difference in months from month ```f``` to month
```t```. If both months are the same, the result is zero. If ```t```
is before ```f```, the result is negative.
(month-add m n)
* ```m``` - valid month
* ```n``` - an integer
Returns a new valid month that comes ```n``` months after ```m```. If
```n``` is negative, it correctly subtracts the months.
### Period