97jaz / gregor

Date and time library for Racket
45 stars 10 forks source link

Incorrect types in documentation? #57

Open kengruven opened 9 months ago

kengruven commented 9 months ago

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: