[racket] Converting a date to seconds

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun Jul 31 06:50:07 EDT 2011

I think you want `find-seconds', which doesn't need a week day or year

At Sun, 31 Jul 2011 11:47:13 +0100 (BST), Mark Carter wrote:
> I'm trying to do a calculation which requires converting a date into years.
> Converting a date into seconds is OK, too.
> The problem is, there doesn't seem to be a good way of doing this in Racket. 
> There is a date->seconds function, which looks useful. However, the make-date 
> function takes in a week-day and year-day - which I don't know. I just want to 
> pass in a year, month and day. I have no idea what weekday it is.
> The alternative would be to use srfi/19, which has a usable make-date function, 
> but doesn't seem to be able to convert that to seconds.
> Any ideas what I need to do to accomplish this?
> _________________________________________________
>   For list-related administrative tasks:
>   http://lists.racket-lang.org/listinfo/users

Posted on the users mailing list.