<div dir="ltr">Hi,<div><br><div>I was just trying out the date conversion in srfi/19, namely the string->date function.</div><div>I noticed that this function will return a lax-date struct when the year is not specified.</div>
<div><br></div><div>If I do the following, this works:</div><div><br></div><div><div><font face="courier new, monospace">#lang racket</font></div>
<div><font face="courier new, monospace">(require srfi/19)</font></div><div><font face="courier new, monospace">(lax-date? (string->date "Feb 11 11:20" "~b ~d ~H:~M"))</font></div><div><font face="courier new, monospace"><br>
</font></div><div><div>However, this one does not work:</div></div><div><br></div><div><font face="courier new, monospace">#lang racket</font></div><div><font face="courier new, monospace">(require srfi/19)</font></div><div>
<span style="font-family:'courier new',monospace">(lax-date-day (string->date "Feb 11 11:20" "~b ~d ~H:~M"))</span><br>
</div></div><div><br></div><div>results in:</div><div><br></div><div><font face="courier new, monospace">lax-date-day: unbound identifier in module in: lax-date-day</font><br></div><div><br></div><div>Is there a simple way to access the struct members of lax-date ?</div>
<div><br></div><div>Thank you very much,</div><div><br></div><div>Wei-ju</div></div></div>