-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can it determine distance from a static date? #33
Comments
Hey @jwnacnud, thanks for the question. Not really, because it doesn't return |
In order to infer the point in time, the static date should also be present in the parser's context, right? Like,
Otherwise, you would need to return Best regards, |
In addition to the above, checked the code once again, I think we can add |
That would be awesome.
Jeffrey Duncan
…On Thu, Jun 1, 2023 at 5:02 PM Oleg Lebedev ***@***.***> wrote:
In addition to the above, checked the code once again, I think we can add
Duration to the Result object here
<https://github.com/olebedev/when/blob/master/when.go#L24-L33> so after
that you will be able to create rules that capture durations like you
mention.
—
Reply to this email directly, view it on GitHub
<#33 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGW5A7KPG5AK7NX3FUAMATXJENO3ANCNFSM6AAAAAAULYUOYE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
For example, if I have a static value, such as my birthday, could I enter something like "halfway through my 18th year"? Thus the distance would be birth_date + 18 years.
The text was updated successfully, but these errors were encountered: