gregor
gregor copied to clipboard
Incorrect types in documentation?
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 returnsdate
, but returns atime
-
iso8601->moment
says it returnsdate
, but returns amoment
-
iso8601/tzid->moment
says it returnsdate
, but returns amoment