Skip to content
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

Support next/last <day of week> #102

Open
dcastro opened this issue Sep 6, 2023 · 0 comments
Open

Support next/last <day of week> #102

dcastro opened this issue Sep 6, 2023 · 0 comments
Milestone

Comments

@dcastro
Copy link
Member

dcastro commented Sep 6, 2023

Clarification and motivation

We should support references like "next Monday" or "last Tuesday". Currently, we only parse the day of week, but don't consider the "next"/"last" qualifier.

λ> parseTimeRefs "next Monday at 10pm"
[ TimeReference
    { trText = "Monday at 10pm"
    , trTimeOfDay = 22:00:00
    , trDateRef = Just ( DayOfWeekRef Monday )
    , trLocationRef = Nothing
    }
]
@dcastro dcastro changed the title Support next/last <week of day> Support next/last <day of week> Sep 6, 2023
@dcastro dcastro added this to the v1 milestone Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant