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

Incorrect types in documentation? #57

Open
kengruven opened this issue Nov 16, 2023 · 0 comments
Open

Incorrect types in documentation? #57

kengruven opened this issue Nov 16, 2023 · 0 comments

Comments

@kengruven
Copy link

The docs for iso8601->datetime say:

(iso8601->datetime str) → date?

and the final word of that line even links to Gregor's date? predicate. Empirically, however, it returns a datetime, which is not a date.

> (date? (iso8601->datetime "2014-03-20T19:20:09.3045"))
#f
> (datetime? (iso8601->datetime "2014-03-20T19:20:09.3045"))
#t

Also on this page:

  • iso8601->time says it returns date, but returns a time
  • iso8601->moment says it returns date, but returns a moment
  • iso8601/tzid->moment says it returns date, but returns a moment
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