gregor icon indicating copy to clipboard operation
gregor copied to clipboard

Incorrect types in documentation?

Open kengruven opened this issue 7 months ago • 0 comments

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

kengruven avatar Nov 16 '23 03:11 kengruven