[racket] Question: struct lax-date

From: Wei-ju Wu (weiju.wu at gmail.com)
Date: Sun Dec 15 19:37:51 EST 2013

Hi,

I was just trying out the date conversion in srfi/19, namely the
string->date function.
I noticed that this function will return a lax-date struct when the year is
not specified.

If I do the following, this works:

#lang racket
(require srfi/19)
(lax-date? (string->date "Feb 11 11:20" "~b ~d ~H:~M"))

However, this one does not work:

#lang racket
(require srfi/19)
(lax-date-day (string->date "Feb 11 11:20" "~b ~d ~H:~M"))

results in:

lax-date-day: unbound identifier in module in: lax-date-day

Is there a simple way to access the struct members of lax-date ?

Thank you very much,

Wei-ju
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131215/29da1002/attachment-0001.html>

Posted on the users mailing list.