Parsing date and time specifications

Mark Carroll mark@chaos.x-philes.com
Thu, 19 Dec 2002 15:28:15 -0500 (EST)


On 19 Dec 2002, Peter Simons wrote:
(snip)
> datatype. It appears that in order to construct one of those, I need
> _all_ the information it contains, including the weekday (Day) and the
> number of the day in the year.
>
> The problem now is that I do not have this information! Of course I
> could calculate these values by hand, but this is immensely
> complicated.
(snip)
> Any suggestions what I could do?

I have some calendar calculation code in Haskell from which I could easily
generate code to calculate the weekday (Day) and the number of the day in
the year, if it turns out you do end up needing it.

-- Mark