[plt-scheme] make-date

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Sun Feb 22 22:42:42 EST 2004

On Sunday, February 22, 2004, at 10:17 PM, Pedro Pinto wrote:

>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> Hi there,
>
> Searching for `make-date' in the help collection returns only 
> references to SRFI  19's `make-date'. However a different 
> (undocummented and incompatible) `make-date' seems to be part of the 
> mzscheme language. I poked around and found that `time.ss' exports a 
> `tm:make-date' which seems to be the 19's `make-date'. However this 
> export is just a rename. I can't figure out where the SRFI 19 
> `make-date' implementation is coming from.  Can anyone explain?
>
> Confused,
> -pp
>
>

   ;; -- Date Structures
   (define-struct date (nanosecond second minute hour day month year 
zone-offset) (make-inspector))

creates a number of primitive functions, including
  make-date ; a constructor
  date-nanosecond ; a selector
  date-second ; another one
  ...
  date? ; a predicate

-- Matthias



Posted on the users mailing list.