[racket] make-date without calculating week-day and year-day

From: Stephen De Gabrielle (spdegabrielle at gmail.com)
Date: Tue Dec 23 05:34:57 EST 2014

Hi,
Is the version of make-date that doesn't require calculating the week-day
and year-day?

(struct date (second minute hour day month year week-day year-day dst?
time-zone-offset))

It looks like I can put any old value in the week-day and year-day fields,
but I'm nervous about this.

> (define d (make-date 0 0 0 1 1 2015 0 40 #f 0))
> d
(date 0 0 0 1 1 2015 0 40 #f 0)
> (date->string d)
"Sunday, January 1st, 2015"
>

Thanks,

Stephen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20141223/f2e060f5/attachment.html>

Posted on the users mailing list.