[plt-scheme] how to work with dates in scheme
On Dec 19, 2008, at 15:01, Sigrid Keydana wrote:
> could anyone please give me a starting point how to work with dates in
> scheme (apart from the PLT scheme reference, where I did not find
> what I
> was looking for)?
As John Clements wrote, srfi-19 will help. I found conflicts between
PLT dates and srfi-19 dates, so in my code I've been using an s19:
prefix, e.g.:
#lang scheme
(require (prefix-in s19: (lib "srfi/19.ss")))
(printf "~a: Alles Gute im neuen Jahr!\n"
(s19:date->string
(s19:make-date 0 0 0 0 1 1 2009 (* -5 3600))
"~d.~m.~Y"))
→ 01.01.2009: Alles Gute im neuen Jahr!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20081219/1c77ab5e/attachment.html>