0

在 DrRacket IDE 中,当语言设置为“Swindle”时,我可以通过以下方式获取系统日期:

(define currentMonth 0)
(let ((date (seconds->date (current-seconds))))
  (set! currentMonth (date-month date))
  )

现在,我需要在 R5Rs 中做同样的事情,但不知道该怎么做。我可以请你在这方面寻求建议/帮助..

谢谢!

4

1 回答 1

1

There is no date-time support in R5RS. The procedures current-seconds, seconds->date and date-month should be available in the R5RS implementation of PLTRacket as extensions.

于 2010-11-28T15:10:30.757 回答