[plt-scheme] Question about calendar in scheme (plt)

From: Neil W. Van Dyke (neil at neilvandyke.org)
Date: Thu Jun 24 12:11:22 EDT 2004

If you have a machine on the Internet that can run the PLT Web server,
this might be a nice exercise for PLT servlets and HTML user interfaces.

SRFI-19 provides some, if not all, of the date math you need.  For any
other date math, one reference is the Emacs Lisp "calendar.el" and
"cal-*.el" files, which are included with Emacs.  Documentation is at:

If you want to play around, one way to start would be to write a Scheme
procedure that accepts three values -- a year number, a month number,
and an output port -- and writes out the HTML code to display a calendar
view of that month.  Then you could read/skim the servlets doc, and
adapt one of the simplest example servlets to display the current
month's calendar through the servlet to a Web browser.  And then get the
year and month names from the URL that invoked the servlet, so that you
can display arbitrary month views.  Then maybe add a feature that
requires the use of HTML forms, so that you can get a feel for how to
use the PLT servlet mechanism's continuations.  At that point, I think
the application is half-done. :)

Posted on the users mailing list.