Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 DrRacket IDE 中,当语言设置为“Swindle”时,我可以通过以下方式获取系统日期:
(define currentMonth 0) (let ((date (seconds->date (current-seconds)))) (set! currentMonth (date-month date)) )
现在,我需要在 R5Rs 中做同样的事情,但不知道该怎么做。我可以请你在这方面寻求建议/帮助..
谢谢!
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.
current-seconds
seconds->date
date-month