Replies: 1 comment
-
Modulo operator is being added in 0.5.29. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Request: Could you add the modulus (%) operator to the arithmetic operators?
Example of usage: I am trying to create a simple birthday notification feature in my daily notes. But the problem is that if I set an interval (e.g. all birthdays in the next 2 months):
At the end of the year (lets imagine it is december) birthdays for the next year will only show up after the first of January. With the modulus uperator we can change the existing query and easly implement this feature.
I am a junior software engineer and I am not sure how easy/hard would it be to add a new operator in this case. But im guessing all we need to do is to register a modulu operator in createBinaryOps? I also believe this feature has other useful implications.
Beta Was this translation helpful? Give feedback.
All reactions