我在查看文档时想到的最接近的事情是
(define (sql-datetime->rfc2822 datetime)
(let ([dt (sql-datetime->srfi-date datetime)])
(date->string dt (date-display-format 'rfc2822))))
但是当我通过它时它失败了sql-timestamp
> (sql-datetime->rfc2822 st)
. . date->string: contract violation
expected: date?
given: (tm:date 456232000 10 39 18 5 5 2013 0)
in: the 1st argument of
(->* (date?) (any/c) string?)
contract from: <collects>/racket/date.rkt