We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to use a filter on the result of periodic-seq like in this example in the README:
periodic-seq
(->> (chime/periodic-seq (-> (.adjustInto (LocalTime/of 0 0) (ZonedDateTime/now (ZoneId/of "America/New_York"))) .toInstant) (Period/ofDays 1)) (filter (comp #{DayOfWeek/TUESDAY DayOfWeek/FRIDAY} #(.getDayOfWeek %))))
However when I try try example, I get this error:
No matching field found: getDayOfWeek for class java.time.Instant
The function seems to return Instants while the example assumes Dates. Am I doing something wrong or is there a problem with the example? Thanks!
The text was updated successfully, but these errors were encountered:
I've worked around it in a way similar to this for now:
(filter (comp #{DayOfWeek/TUESDAY DayOfWeek/FRIDAY} #(.getDayOfWeek %) #(.atZone % (ZoneId/of "America/New_York"))))
Sorry, something went wrong.
9f01408
Thanks again - have updated the README :)
[readme] need to convert periodic-seq back to ZDTs so that we can cal…
f72ba67
…l (e.g.) `.getDayOfWeek`, fixes #47
No branches or pull requests
I'm trying to use a filter on the result of
periodic-seq
like in this example in the README:However when I try try example, I get this error:
No matching field found: getDayOfWeek for class java.time.Instant
The function seems to return Instants while the example assumes Dates. Am I doing something wrong or is there a problem with the example? Thanks!
The text was updated successfully, but these errors were encountered: