In DrRacket IDE, I was able to get the system date in the following manner when the language setting was 'Swindle':
(define currentMonth 0)
(let ((date (seconds->date (current-seconds))))
(set! currentMonth (date-month date))
)
Now, I need to do the same in R5Rs, but not sure how to. May I please seek your advise/help on this..
Thank you!
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.