[plt-scheme] Examples using date?

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Tue May 1 17:26:58 EDT 2007

(define-struct posn (x y))

defines six functions

The rest is analogous. -- Matthias

On May 1, 2007, at 5:23 PM, SpinyNorman wrote:

> I get, via the HelpDesk, that seconds->date returns me a date struct,
> which includes various fields, some of which look like what I'm after
> (day of week, etc.).  The doc appears to assume that it's obvious to
> the reader what syntax is used to refer to these fields; alas I have
> no clue.  If I have a date, how do I get at date->week-day, for
> example?  Apparently there are getter methods associated w/any struct,
> but I'm not sure what they are.
> -jmc
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.