[racket] make-date without calculating week-day and year-day
<greghendershott at gmail.com> wrote:
> In my experience they are always ignored.
>
> http://stackoverflow.com/questions/12023846/trying-to-
> create-a-date-from-a-string-in-racket-find-seconds-very-
> slow-week-d/12047232#12047232
Thanks Greg,
Much appreciated
Happy Hannuka/Merry Christmas to everybody.
Stephen
On Tue Dec 23 2014 at 12:40:55 Greg Hendershott <greghendershott at gmail.com>
wrote:
> In my experience they are always ignored.
>
> http://stackoverflow.com/questions/12023846/trying-to-
> create-a-date-from-a-string-in-racket-find-seconds-very-
> slow-week-d/12047232#12047232
>
> On Tue, Dec 23, 2014 at 5:34 AM, Stephen De Gabrielle
> <spdegabrielle at gmail.com> wrote:
> > 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
> >
> > ____________________
> > Racket Users list:
> > http://lists.racket-lang.org/users
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20141224/a6f46f33/attachment.html>