【问题标题】:How to get system date in R5Rs in Scheme/DrRacket如何在 Scheme/DrRacket 的 R5Rs 中获取系统日期
【发布时间】:2010-11-28 06:46:51
【问题描述】:

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

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

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

谢谢!

【问题讨论】:

    标签: date scheme system r5rs


    【解决方案1】:

    R5RS 不支持日期时间。过程current-secondsseconds->datedate-month 应该作为扩​​展在PLRTacket 的R5RS 实现中可用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-23
      • 2011-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-25
      • 1970-01-01
      相关资源
      最近更新 更多