From acb1e8cd0afea519760b100cbe6247346ab12ba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Wed, 22 Mar 2023 21:09:47 +0100 Subject: [PATCH] Month comparators documentation. --- README.md | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d24dc99..462f3a4 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ inclusive. Returns boolean value. Parses given string ```s``` as month and constructs a month value from the YYYY and MM components parsed. The resulting month value is -returned only if it is valid. Otherwise #f is returned. +returned only if it is valid. Otherwise ```#f``` is returned. (month->string m) @@ -133,6 +133,49 @@ If ```#f```, returns a special empty month result ```"____-__"```. Raises an error if ```m``` is not a valid month. + (month=? m n) + +* ```m``` - first valid month value +* ```n``` - second valid month value + +Returns ```#t``` if both month values are valid and ```equal?```. + + (month=? m n) + +* ```m``` - first valid month value +* ```n``` - second valid month value + +Returns ```#t``` if both month values are valud and ```m``` comes +after ```n``` in the calendar or they are ```equal?```. + + (month>? m n) + +* ```m``` - first valid month value +* ```n``` - second valid month value + +Returns ```#t``` if both month values are valud and ```m``` comes +after ```n``` in the calendar. + +month-diff + +month-add + ### Period ### Primes